HTML Tutorials

Back Link: As a Button

By default the back link script creates a hyperlink. If you prefer you can create a back button instead, set the type property of your backlink object to button, like this:


<SCRIPT TYPE="text/javascript">

<!--

var gb = new backlink();

gb.type = "button";

gb.write();

//-->

</SCRIPT>

which gives us this button:

Be sure to set the type property before calling the write() method.

By default the button type of back link writes out <FORM> and </FORM> tags. If you use this type of back link inside a form then set the form property to false before calling write():


<SCRIPT TYPE="text/javascript">

<!--

var gb = new backlink();

gb.type = "button";

gb.form=false;

gb.write();

//-->

</SCRIPT>




Recommended Resources

web hosting tutorials
Credit Help
Search the Internet
Search Engine Help
Low Fat Lifestyle
Internet Traffic
Web Hosting
Web Design

Discount Hotel Reservations

Search The Internet


Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.
About the author

All Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003
A service of 1stHostWeb.com