backt next

Creating Your Own Button


  Many people like to create their own version of button inside their page. Here is a little script to make it all work.



BACK Button
<form>
<input type="button" value="BACK" onClick="history.back()">
</form>


FORWARD Button
<form>
<input type="button" value="FORWARD" onClick="history.forward()">
</form>


Any Button
<form>
<input type="button" value="JavaScript Homepage" onClick="window.location='index.html'">
</form>


onClick is the event that invoke Java Script upon clicking.



Back to JavaScript homepage | Back | Next | Email me