Loading, please wait ...
Open its course - HTML5

Short Questions for Browser History

  • 1 Write short note on pushState function of the history object of the browser.

    Answer
    pushState function lets you push data into the history object. The first argument is an object that contains your data, the second argument is the title that reference that data, and the url argument lets you associate the data with a particular page so it’ll be popped when that page is reloaded.


  • 2 Which function will you use from the history object of browser to display the last 4th page?

    Answer
    A general purpose function window.history.go[delta] will let you move backward by the value -4 for delta.


Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert