View Full Version : pop ups


niya429
01-25-2003, 03:59 PM
How do you size and position the pop ups? Like I only want it to be half the regular size and in the top right corner or something like that. how do I do that?

Sheila
01-25-2003, 04:10 PM
http://www.lissaexplains.com/java4.shtml

If you scroll down that page, it tells you how to position them and how to change the size.

niya429
01-25-2003, 04:42 PM
I have, but I can't seem to get it to work. like, where do I put the code?

lefty
01-25-2003, 04:44 PM
between your <head> tags. It explains it on the page.

niya429
01-25-2003, 06:25 PM
Nope, still not working.

starlet
01-25-2003, 06:33 PM
youll have to post the full code your useing or a link to the page then...or we cant possibly know why it isnt working for you :)

niya429
01-25-2003, 10:55 PM
Oh sorry!

I have this next to the links that I want to open in the new page:
<a href="link" target=_blank>

but I can't get it to do this:

{ window.open ("blah.html","popup","width=yourwidth,height=yourheight,location=0,menub ar=0, resizable=0,scrollbars=0,status=0,titlebar=1,toolb ar=0 , left=your number here, top=your number here") }

Alcy
01-27-2003, 02:22 AM
You've got two different codes there. You don't use them together.

The first one, targeting links to "blank", will open to a new window - but can't control the size of that window.

The second one is the popup script. You can adjust the size of the popup. Lookie here (http://www.lissaexplains.com/java4.shtml).

It's a bit difficult to get the popup 50% of the user's browser because there are different resolutions. You'd have to use another, different javascript to determine the size of the user's browser. It would be a lot easier if you specified an exact pixel value for the popup.