开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜