Monday 15 September 2014

javascript - Adding a page to the history in a Chrome extension -


I was wondering if there could be a hidden tab in the Google Chrome extension, which is directed to the input URL . For example, if I want to go to www.google.com, the URL of the tab in the background will be www.google.com. You can verify that the only way is checking your browsing history. Is this possible? What are the other ways to do this?

My goal is basically to go to a URL and add it to history, but to hide this process from the user.

If I understand correctly, do you want to add an entry in the user's history?

Example: history.pushState ({}, "Google", "http://google.com") For example,

parameter:

  • State Objects : Can be used to store data between different "states", or pages.
  • P>

    The new URL should be in the form of the current URL of the same origin; Otherwise, pushstate () will throw an exception.

No comments:

Post a Comment