Javascripts > Javascript Popups > Secret Alert Popup
Script Title: Secret Alert Popup
Description: Type a secret word anywhere on the page to view an alert
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script language="JavaScript"> //Free Scripts on http://www.ScriptBreaker.com var nav=navigator.appName; var ns=(nav.indexOf("Netscape")!=-1); if(ns){ if(document.layers){ document.captureEvents(Event.KEYPRESS); document.onkeypress = cheat; } if(document.getElementById){ document.onkeypress = cheat; } } else {document.onkeypress = cheat;} var SpecialWord = "here"; var SpecialLetter = 0; var vcheat = false function cheat(keyStroke) { var eventChooser = (ns)?keyStroke.which: event.keyCode; var which = String.fromCharCode(eventChooser).toLowerCase(); if(which == SpecialWord.charAt(SpecialLetter)){ SpecialLetter++; if (SpecialLetter == SpecialWord.length) alert("yo man") } else {SpecialLetter = 0;vcheat = false} } </script>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email