Home  >  Article  >  Web Front-end  >  Newly discovered that documet.URL can also achieve page jump_javascript skills

Newly discovered that documet.URL can also achieve page jump_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:09:241677browse

The jump statement we often use in JavaScript is:
window.location='http://www.jb51.net';
In fact, we can also use the following statement instead:
document. URL='http://www.jb51.net/';
Demo:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn