JavaScript
JavaScript is a type of HTML which can do some pretty decent things.
Entering Pop-Up
<script language=”JavaScript”>alert (“YOUR MESSAGE HERE”) </script>
Leaving Pop-Up
<body onUnload=”alert (‘YOUR MESSAGE HERE’) ;”>
Entering and leaving pop-up
<body onLoad=”alert(‘YOUR TEXT HERE’) ; “onUnload=”alert (‘YOUR TEXT HERE’) ; “>
As you can probably tell the first part in brackets and inverted commas’ is what comes up when you open the page and the same for the second one apart from that one appears when you close the page.
Blocking right clicking
<script LANGUAGE="JavaScript">
<!--
function click() {
if (event.button==2) {
alert(‘YOUR WANRING HERE');
}
}
document.onmousedown=click
// -->
//-->
</script>
Password protect pages
<script language=”JavaScript”><!—hidevar password;var pass1=”PASSWORD GOES HERE”;password=prompt (‘TEXT ON POP-UP’,’ ‘);if (password=pass1)alert(‘TEXT IF RIGHT’);else { window.location=”URL OF PAGE IT GOES TO IF PASSWORD IS WRONG”; }//--></script>
This goes after the <head> tag – not after the </head> tag.
That’s just some basic JavaScript scripts for you. If you want to find more search for JavaScript on Google or something like that.





Reply With Quote
This one is a little empty so i might add some stuff to it if you dont mind...?







