Back Link: Setting the Text

By default the back link script creates a link with the text Go Back. You can set your own text by setting the text property of the backlink object. For example, the following script creates a back link with the text Get Back, Jack. Note that the text setting must be set before the write() command:

<SCRIPT TYPE="text/javascript">
<!--
var gb = new backlink();
gb.text = "Get Back, Jack";
gb.write();
//-->
</SCRIPT>

Which gives us this link: Get Back, Jack.





About the Author
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.