PDA

View Full Version : sized page


Mgkeeper
10-19-2002, 06:18 PM
I would like to know how to open a window in a certain size from a hyperlink. I can only find how to do it with a button. But i need to know how to do it with a hyperlink.

Galdo
10-19-2002, 06:55 PM
Like this?

Replacing the URL, WIDTH and HEIGHT with your values.


<a href="javascript:window.open('URL','width=WIDTH, height=HEIGHT');void('');">Link Text</a>

Mgkeeper
10-19-2002, 07:17 PM
yeah thats it, thanks alot!! :D

Galdo
10-19-2002, 07:18 PM
No problem :)

Mgkeeper
10-19-2002, 07:22 PM
hey wait. It tells me i have an invalid argument, heres the code:

<a href="javascript:window.open('http://www.majvegeta.com/home.shtml','width=550, height=400');void('');">Click Here to Enter The Official (A.S.S) Clan Site</a>

and whats the void() for??

Galdo
10-19-2002, 07:35 PM
Sorry about that, I took that from a longer thing, which may be of use to you.


<a href="javascript:window.open('URL','width=WIDTH, height=HEIGHT');void('');" onMouseover="window.status='This is a Link'; return true" onMouseout="window.status=''; return true">




This hides the fact that it is a Javascript open window jobbie.

(Might need to take space out between java and script which the forum seems to have put there)

Mgkeeper
10-19-2002, 07:41 PM
its still doing the invalid argument thing. The codes on http://www.majvegeta.com/index.html