How do I make this script run in 10 seconds ??
<script type = "text/javascript">
function simulateClick(x, y) {
var clickEvent = document.createEvent('MouseEvents');
clickEvent.initMouseEvent('click', true, true, window, 0, 0, 0, x, y, false, false, false, false, 0, null);
document.elementFromPoint(x, y).dispatchEvent(clickEvent);
}
simulateClick(1176, 435);
</script>
The idea would be to put a countdown on it, does anyone know?