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 2 of 2
  1. #1
    Regular Coder tpeck's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    861
    Thanks
    50
    Thanked 6 Times in 5 Posts

    How to make a button go to page on click

    It must be simple, but I can't do it! I want to make a button go to a page with the onclick handler:

    <a href="start.html">
    <input type=button value="GO BACK TO START" onclick="??????????;return false;"></a>

    I've tried everything I can think of...

    Thanks,

    Terry

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    <input type="button" value="GO BACK TO START" onclick="location.href='start.html'">

    No need to use a link or a return false
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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