What kind of link, behavior can I add to a button (when clicked) will return to the page last viewed? ie: back button
Thanks,
Rick
This is a private blog for members of the Portland Adult Ed Dreamweaver CS4 class. Welcome! You may write your own entries and you may respond (comment) on other entries. Use this as a problem-solving tool!
Here's the scoop:
ReplyDeleteJavaScript has its own equivalent of the Back button written into the language. The statements
onClick = "history.back()"
and
onClick = "history.go(-1)"
both mimic the action of clicking the Back button once.
I tried out the first (history.back()) and it seems to work. I have not tried it to go from page to page to page; it may not work for that!
Thanks for letting me research this. I found the answer here:
SAMS Teach Yourself Ajax in 10 Minutes
by Phil Ballard
Publisher: Sams
Pub Date: April 28, 2006
Print ISBN-10: 0-672-32868-2
Print ISBN-13: 978-0-672-32868-8
Pages: 240