Sort by :
Date
Rating
Editor's Pick Only
If you don't want your visitors to rightclick at your page, you can insert this code somewhere between <Body> and </Body>. Type in the message you want your visitors to get in the line "Write your message here"
This will let you count the number of days remaining to reach a given event : for instance days left before we reach the year 2007:
In the long-gone days of the early Internet, having a form on the website was tantamount to dabbling with "cutting-edge" technologies. Intricate Perl scripts and esoteric CGI scripts were required to process those forms and people used to suffer bouts of cold sweat whenever there manifested a need.....
Browser detection allows you to find out what browser your viewer is using, and then perform a script based on it - or just to send a friendly message to those with your favorite browser.
Redirection is often used to take viewers to a page depending on their browser's name or version. To redirect a viewer instantly, you just need to add a short command in your head section:
To open a new window, you will need to use yet another ready-made JavaScript function. Here is what it looks like:
I get this question so much, I figured I'd better get in gear and write another section to address using the link tag for javascripts (such as new windows), rather than using the old grey button. Well, there are a couple of ways to do this. I'll start with the easier to understand version first.
Now it's time to get into some really fun stuff. Yes, variables and functions. Don't worry, it's not as bad as it sounds.....let's start with declaring variables. You'll want to keep all of your variables in the HEAD section for now. Place the declarations between the SCRIPT tags inside the hea...
Well, let's say you wanted to get somebody's name before they saw the page, and then write their name on your page right before their very eyes... Well, you can do this using a javascript prompt. Here's the command:
OK, I finally got around to writing the javascript password protection tutorial. You will see the example script here is pretty straightforward, but it is also pretty easy to get around. I'll tell you why and give you links to more secure scripts later in this tutorial.

















