27+ Handy Javascript Techniques for Web Designer
Javascript is such an useful script language. It is used in many web sites to add functionality, validate forms, randomize images, and much more. Although it is not required to be pro coder, there are some useful techniques every web designer should know. In this post you will find 27+ useful JavaSc ...
What You Need to Use JavaScript
To begin learning JavaScript, you will need to have a few things. Here they are:
Rounded corners
We took these, combined them, stripped some functionality (kept antialiasing) and simplified the API. There is one restriction: only DIVs can be rounded with this implementation, which suited us fine, and made the code a bit shorter.
Using Link Tags with JavaScript
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.
Opening a New Window
To open a new window, you will need to use yet another ready-made JavaScript function.
JavaScript Redirection
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:
JavaScript Browser Detection
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.
JavaScript Confirmation Boxes
A javascript confirmation box can be a handy way to give your visitors a choice of whether or not an action is performed. A confirmation box will pop up much like an alert box, but will allow the viewer to press an "OK" or "Cancel" button.
JavaScript Password Protection
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.
JavaScript Prompts
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.







