Home > Article > Web Front-end > Newly discovered that documet.URL can also achieve page jump_javascript skills
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: