Andreas Bonini
Andreas Bonini

Reputation: 44752

How can I open a non-resizable popup at a fixed position?

See title. Using either javascript or pure HTML.

Upvotes: 1

Views: 6517

Answers (3)

RonnBlack
RonnBlack

Reputation: 4108

You should carefully consider the use of non-resizable windows.

If the user has their default font size larger than the normal then your content won't fit as expected. In addition, if you specify a size larger than their screen you won't get the size you expect.

These situations are not that uncommon when you consider netbooks, handheld devices and computers that are attached to televisions.

Upvotes: 0

idrumgood
idrumgood

Reputation: 4924

To make it non-resizable, just add a 'resizable=0' as one of the parameters.

    window.open('url.htm','mywindow','width=400,height=200,
left=0,top=100,screenX=0,screenY=100,resizable=0');

Upvotes: 2

Colin
Colin

Reputation: 10638

window.open('url.htm','mywindow','width=400,height=200,left=0,top=100,screenX=0,screenY=100');

Upvotes: 3

Related Questions