开发者

How to change browser url box's text by Javascript?

开发者 https://www.devze.com 2023-02-11 19:17 出处:网络
I have a html page it contain a button when i click the button it will set some text in web brower url box.(exam 开发者_开发知识库it set text \"www.google.com\" Is it possible in java script?No, That\

I have a html page it contain a button when i click the button it will set some text in web brower url box.(exam 开发者_开发知识库it set text "www.google.com" Is it possible in java script?


No, That's not possible as far as I know. You can't change the address from address bar of a browser.


location.href = 'http://www.google.com/';

Probably not what you meant though ;)

0

精彩评论

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