Click to See Complete Forum and Search --> : New window excact size?


JavaNerd
04-21-2003, 03:15 PM
Wich code do I have to put in if I want the new window wich pop ups to be in an excact size (like 200x100)?
I suppose it's something to do with JavaScript coding, am I right?

Anyway any answers will be appreciated.

Thanks whoever answers. :)

joyous monkey
04-22-2003, 12:52 AM
Hi, JavaNerd

The following link contains the sort of JavaScript code that you're after...

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20102060.html

Hope it helps,
Joyous Monkey

JavaNerd
04-22-2003, 09:21 AM
Thank alot :)
but :(
it wasn't on the page itself wich needed it.

It was a simple text with an url, when clicked on, would pop up a window like that.

Sorry for any missunderstanding.

-----
btw the code wich is pasted at that url, sure it seems to work, but how do I put it in an url link text?

joyous monkey
04-23-2003, 01:04 AM
Hello again.

Sorry if there was any misunderstanding...

If you wish to set the size of a browser window using JavaScript you're going to have to make use of a small script to do this. Below is another link which shows how this may be done. ..

http://www.cybertext.com.au/tips_HTML_window_size.htm

In this example it defines the size as 500 by 300, so if you want it to be 200 by 100, just use these numbers instead. It is going to be a case of experimenting to get the effect that you want, but this should not be too difficult.

Best regards,
JM