Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Regular Coder
    Join Date
    Jun 2004
    Posts
    565
    Thanks
    0
    Thanked 18 Times in 18 Posts
    Code:
    <input type="button" value="JRgames" onClick="top.frames['main'].location.href='http://www.jrgames.net';">
    dumpfi

  • #3
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •