About This Product
FontsMadeEasy.com
 
Search This Database:
| Over 5000 Free Fonts | Tutorials | Javascript Forum | Other Javascript Resources | Cheat Sheet
Tutorial archive
General Questions
Javascript 1.2
Navigation
Numbers
Strings
Object Model
Reference Manual
Dialog
Windows
Frames
Forms
Images
Mouse Events
Colors
File Access
Control Status Bar
Dates and Time
Cookies
Client Information
Bookmarklets


Button Links

Question: Can I make a button on my page work as a hyperlink to another page?

Answer: To create a button that works as a
you can use this code:
<form> 
<input type=button 
value="insert button text here"
onClick="self.location='Your_URL_here.htm'">
</form> 
Just change the button text and the target URL to whatever you want. Try it now:
You can use absolute URLs (like http://www.javascripter.net) as well as relative URLs (like mypage.htm).

BackBack