开发者

insert url's to internet explorer back/forward

开发者 https://www.devze.com 2023-03-22 18:10 出处:网络
I\'m writing an internet 开发者_如何学编程application, and i would like to insert url\'s into the back/forward stack of the ie,

I'm writing an internet 开发者_如何学编程application, and i would like to insert url's into the back/forward stack of the ie, without actually sending the browser to those links.

is it possible???


In an ajax based page you can use the hash part of the url to enable navigation using the default forward and back buttons. For example: #tab1, #tab2, #tab3 to navigate through a tabbed wizard.

The hash change does not trigger a default postback, so the change of the hash has to be detected with javascript to trigger a function to get the desired information through ajax.


Websites are not allowed to manipulate the travel log arbitrarily. You can move back and forward through the travel log, and add to it by navigating the browser, but you cannot simply insert whatever you'd like without actually navigating there.

This is a security feature. If websites could arbitrarily modify the travel log, they could insert all sorts of spam, advertising, lead generation sites, etc, and the user would no longer be effectively in control of the browsing experience. The browser experience would no longer be consistent and predictable.


Nope, there is a good reason why this isn't possible!

0

精彩评论

暂无评论...
验证码 换一张
取 消