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

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?

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

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.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum