...

View Full Version : target="main" inside onclick event



Parky
12-25-2004, 08:25 PM
i have this script:

<input type="button" value="JRgames" onClick="window.location='http://www.jrgames.net'">

but i want that to open it my "main" frame. (target="main")

please could anyone help?

dumpfi
12-25-2004, 09:03 PM
<input type="button" value="JRgames" onClick="top.frames['main'].location.href='http://www.jrgames.net';">dumpfi

Parky
12-26-2004, 09:57 AM
thank you very much,
but how do u make it refresh in the main frame?

i am makin a website that is viewed in a browser with no buttons.
http://www.jrgames.net/index2.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum