Edit This Code:
See Result »
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
button
onclick
="myFunction()"
>
Replace document
<
/button
>
<
script
>
function
myFunction() {
location.replace(
"http://www.w3schools.com"
)
}
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Replace document</button> <script> function myFunction() { location.replace("http://www.w3schools.com") } </script> </body> </html>
Result:
Privacy Policy