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 ;)
精彩评论