Popup a new widow by pressing the down arrow

[Total: 0    Average: 0/5]

The script opens a new window by pressing the down arrow on the keyboard.

Body Code:

<SCRIPT language=JavaScript>
function document.onkeydown()
{
if (window.event.keyCode==40)
/* fire the event if the down arrow is hit */
window.open("http://www.js-examples.com/","HLP1","toolbar=0,status=0,directories=0,scrollbars=1,resizable=1,menubar=no,left=0,top=0");
}
</script>
Hit the down arrow.

Times Viewed: 5

Leave a Reply

Your email address will not be published. Required fields are marked *