<script language="JavaScript"> function webrom_click_under_jump(){ if (wr_clickunder_jump==0){ wr_clickunder_win=window.open("http://google.com", "_blank","toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, copyhistory=yes, width="+window.width+", height="+window.height+", left="+window.screenX+", top="+window.screenY+", resizable=yes"); wr_clickunder_win.blur(); window.focus(); wr_clickunder_jump=1; } } wr_clickunder_jump=0; setTimeout('document.onclick=webrom_click_under_jump;', 100); </script> Code (markup): How can i make this javascript to work only once a day?
Anyone, correct me if I'm wrong, but that's not possible with javascript alone. But I think it's possible if you want it to work on certain time (user's local time).