Modifier Le code:
Voir Résultat »
Essayez-le vous-même - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
button
onclick
="myFunction()"
>
Replace document
<
/button
>
<
script
>
function
myFunction() {
location.replace(
"http://www.w3ii.com"
)
}
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <button onclick="myFunction()">Replace document</button> <script> function myFunction() { location.replace("http://www.w3ii.com") } </script> </body> </html>