Help and Support

FP: How to Create a "Back" Button on a Web Page Using VBScript

Article ID:168391
Last Review:June 25, 2007
Revision:4.1
This article was previously published under Q168391

For a Microsoft FrontPage 98 version of this article, see 194157 (http://support.microsoft.com/kb/194157/EN-US/).

SUMMARY

This article provides sample HTML code that inserts a control button or a link on a Web page that returns you to the previous document when you click it.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following HTML code adds a control button to a Web page form:
<FORM method="POST" name="VBScript_Nav_Sample">
     <INPUT TYPE="button" NAME="Go Back!"
      VALUE="VBScript_Backup_Sample" LANGUAGE="VBScript"
      OnClick="call window.history.back(1)">
   </FORM>
				
The following HTML code adds a hyperlink that retraces the Web browser's history:
<a href="JavaScript:history.back(1)">the past</a>
				
For more information about writing HTML, visit the following Microsoft Web site:
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarhtmau/html/beghtml.asp (http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/dnarhtmau/html/beghtml.asp)

APPLIES TO
Microsoft FrontPage 97 Standard Edition
Microsoft FrontPage 1.1 Standard Edition

Back to the top

Keywords: 
kbinfo KB168391

Article Translations

 

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.