Web Application History Object Primer Tutorial

Web Application History Object Primer Tutorial

Web Application History Object Primer Tutorial

It’s very instructive to take a look at an Object Flowchart for a web page. “JavaScript & Ajax” seventh edition by Tom Negrino and Dori Smith has one such Object Flowchart, and was intrigued by the window object’s history[] array entry that looked like below …

… which made me curious to find out if a web page you are on, on a tab of a web brower can “purloin” the knowledge that web browser has about URLs and web page titles it has concerning the browsing history of web pages on that tab. But as we delved, and created today’s simple history.html live run web application and read a bit off the net we realized what a security breach that would be to allow access to this information for a web page.

Nevertheless you can glean …

  • window.history.length to find out how many web browsing history pages there have been (on the current web browser tab)
  • use Javascript history object methods back() and forward() and go() to navigate to those web browser “tab browsing history” URLs backwards or forwards, and the web browser Back or Forward buttons would do

Our small web application explores this a little today for your interest and perusal.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>