Buttons

Requirements

Requires CC Common Code

JavaScript

// Button script to be placed in <body>, wherever the buttons are needed:

<!--------------- Back Button --------------->
<form>
<p>Click the <input type="button" value="Back" onClick="history.go(-1)">
   button to continue whence you came.</p>
</form>

<!--------------- Add to Favorites --------------->
<form>
<p>Click <input type="button" value="Favorites"
   onclick=
"window.external.AddFavorite(location.href,document.title)">
   to add this page to your Favorites.
</p>
<!-- note: if this page is inside your own frame, use
   top.location.href and top.document.title -->
</form>

Results

The result looks like this:

Click the button to continue whence you came.

Click to add this page to your Favorites.