Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-25-2004, 08:25 PM   PM User | #1
Parky
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Parky is an unknown quantity at this point
target="main" inside onclick event

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?
Parky is offline   Reply With Quote
Old 12-25-2004, 09:03 PM   PM User | #2
dumpfi
Regular Coder

 
Join Date: Jun 2004
Posts: 565
Thanks: 0
Thanked 18 Times in 18 Posts
dumpfi will become famous soon enough
Code:
<input type="button" value="JRgames" onClick="top.frames['main'].location.href='http://www.jrgames.net';">
dumpfi
dumpfi is offline   Reply With Quote
Old 12-26-2004, 09:57 AM   PM User | #3
Parky
New to the CF scene

 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Parky is an unknown quantity at this point
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
Parky is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:52 AM.


Advertisement
Log in to turn off these ads.