Shiva
Veteran
Bu örnekte butona tıklayarak bir sayfanın 2 saniye sonra açılması sağlanır.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!doctype html> <html> <head> <title>www.realitycheats.com</title> <meta charset="utf-8"> </head> <body> <input type="button" id="btn1" value="2 saniye sonra git"> <script> var btn1=document.getElementById("btn1"); btn1.onclick=function(){ window.setTimeout(function(){location.href = 'https://www.realitycheats.com';}, 2000); } </script> </body> </html> |