Your Guide to Professional
Web Site Design and Development

HTML Tips
HTML Codes
Web Development
Web Design Tips
JavaScript Codes
216 Web Safe Colors
CSS Tutorial
JavaScript Tutorial
ASCII Character Codes

 

| Web Site Development | HTML Codes | HTML Tips | Web Design TipsJavascript Snippets | 216 Safe Colors | Symbols | CSS Tutorial | JavaScript Tutorial |

webmaster resources
website design

JavaScript Codes

JavaScript Code is a scripting language designed for use within a web page and/or on a web server. It is used to create special effects within a web page.

Elements, such as links, images and forms can all be manipulated using this powerful technology.

Unlike CGI scripts, JavaScript can be placed directly into your HTML code. It can also reside on your server and be called from a small code within your web page.

If you'd like to place your code within a file on your server, you will need to open a plain text editor and place your code within the editor. The script file should then be saved with a .js extension.

In order to call your JavaScript Code, you will need to link to the file. You can do so by placing a small code within the HTML of your web page that looks something like this:

<SCRIPT language="Javascript" src="http://www.yoursite.com/yourfile.js">

This powerful scripting language can be used to create special effects within your web page, such as link effects, mouseovers, image roll overs, navigational systems and much more.

You can even use JavaScript codes to dynamically update your web site! See our article on how to dynamically update with JavaScript codes to learn how.

Although JavaScript can certainly help you spice up your web site, there are many scripts that your visitors may find irritating. Try to avoid scripts such as mouse trailers, mouseover sounds, mouseover pop up windows and mouseover redirects.

Carefully select scripts that will enhance your visitors experience and encourage them to return in the future.

If you're looking for some simple JavaScript Codes to spice up your web site, you've come to the right place. You will find a variety of JavaScript Code snippets below. Simply click on the links and copy and paste the codes into your web page according to the instructions.

 

JavaScript Snippets

 

Password Protect and Encrypt / Encode HTML Code Pages

Disable enter key within forms

Highlight an Image on Mouseover

Disappearing default form text

Open multiple windows with links

Make this site your home page button

Add to favorites button

Typing status bar text

Protect your web page content

Open a new window with a button

Open a new window with a link

First visit popup window


Close a window with a button

Close a window with a link

Open a window on page load

Reload a window with a button

Reload a window with a link

Reload/Redirect to another page
Redirect to another page

Status bar link description

Back to previous page with a button

Back to previous page with a link

Back to previous page with an image

Button email prompt

View source code with a button

View source code with a link

On mouse over alert box

Date 1

Date 2

Date 3

Drop Down Box with automatic redirect

Drop Down Box with automatic redirect 2

Prevent your site from being framed

Preloading images

Status Bar Clock

 




Would you like to learn how to design your own web site?

Whether you are a complete beginner or have some web site design experience, this web design course will teach you how to plan, design, build and market your own web site

If you like these codes, you'll love Web Design Mastery. Get these codes and many more.

"I have learned more from this web design course than I did from a course I took in college!" - Joseph Seeles

 More

Web Design Information:

Web Development
HTML Codes
HTML Tips
Web Design Tips
JavaScript Code Snippets
216 Safe Colors
Symbols


If you've found these JavaScript codes helpful and would like to submit your own s nippets to be included on our site, send us an email with a complete description of what the code does, the actual code and the name and web address you would like to include. If selected, your code will be placed on our site, as well as your credits and a link to your website.