Friday, 26 January 2018

Body onLoad Click link

If you want auto click on link on load body then just copy and paste this code on your page
<html>
<head>
<script>
window.onload = function(){
location.href = document.getElementById("autoid");
}
</script>
</head>
<body>
<a href="http://sakhihosting.in" id="autoid">Best Web Hosting Service</a> </body>
</html> If you want click after few second change <script>
window.setTimeout('clickit()',5000);
function clickit(){
location.href = document.getElementById("autoid");
}
</script>