Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>JavaScript</h2> <h3>The window.location object</h3> <input type="button" value="Load new document" onclick="newDoc()"> <script> function newDoc() { window.location.assign("https://www.w3schools.com") } </script> </body> </html>