Webmasters Heaven, Free submission, Free Promotion, Free Tools
Backword Forward Home add this page to favoirates send this page to a friend print this page icons Webmaster Tools Web Site Submit Web Site Promotion Subscriptions
Free Icons Free Articels Free Tools Website submission Websites Promotion Subscriptions

Articles Category  ]

Google
 
Advertising
Affiliates
Blogs
CGI
CSS
DHTML
Domain Names
ECommerce
Email
HTML
Internet
Javascript
Link Popularity
Marketing
MLM
Newsletters
Promotion
RSS
Search Engines
Site Security
Traffic Analysis
Web Hosting
Web Design
Webmasters


articles -> javascript
Article Title Author
A Recursive Filtering Workbench in Java Richard G. Baldwin
7 Reasons You Should Avoid JavaScript Dynamic Navigation Iain Row
Using External JavaScript Source Files Sasch Mayer
dhtmlxTabbar - Creating Dynamic Tabbed Interface Has Never Been Easier! Ivan Petrenko
dhtmlxTree version 1.3 - Add Flexibility to Your Web Trees Ivan Petrenko
Java tips & tutorials - best Subscriptions for learning Java Groshan Fabiola
Ajaxgear Toolkit Allan Spartacus Mangune
Evaluation of Keywords for an AdSense Oriented Website F. Terrence Markle
Submit form conditionally - JavaScript SiteArticles.com
New Customizable JavaScript Menu for Web Applications Ivan Petrenko
Capturing Video And Audio Streams How-To John Deprice
How to handle web surfers, who disabled JavaScript Michael Kashirin
Simplified form to mail: Unlimitted input Endar WS
Anti right-click pop up : pop up will appear if visitors right-clicks his mouse Endar WS
Password protected document : Protect your web page with specific password for each member Endar WS
Building HTML codes automatically, just copy&paste your content Endar WS
Javascript Password Protection Timur Abdrakhmanov
How to test for the Javascript DOM? Riaan Pieterse
Interactive Forms Brian Zimmer
Validating Numerical Input with JavaScript David Morse
Instant plug-in scripts that help you profit... "Special offer expiry date with a twist" Michel Komarov
Javascript Basics 01 Lisa Spurlin
Javascript; Browser Detection and Page Redirection William J. Tolson
Ask Mr. D - JavaScript Bill Daugherty
Grow Your Subscribers Exponentially With These Javascript E-mail Capture Boxes! Vishal Rao
Some Useful JavaScript Tricks Mitchell Harper
Validating Form Input in JavaScript Amrit Hallan
Using External JavaScript Files Amrit Hallan
Guide to creating simple chromeless popup windows Michael Bloch
Dirty Web Promotion Tricks #1 - Legitimate and Malicious Javascripts Michael Bloch
Spice Up Your Web Site with JavaScript Shelley Lowery
Make your website scream with excitement with Java! Johnathan Wyka-Warzecha

Using External JavaScript Source Files   by Sasch Mayer


By now most web designers and developers know that JavaScript causes a real headache for search engine spiders.
There are however a number of scripts which, whilst not absolutely essential to the functioning of a site, are nevertheless very handy.

So where do you draw the line between keeping your page as search engine friendly as possible and including reams of JavaScript to achieve the desired effects?

You may be surprised to learn that there is an alternative which keeps search engine spiders (reasonably) happy whilst drastically cutting down on the necessary scripts within any given web page.

External JavaScript Source Files
Let's take the humble "Add Bookmark" script as an example (please note that I have replaced the < > brackets with [ ] brackets so as to be able to display the code properly within this article).

[script Language="JavaScript1.2" type="text/javascript"]
var bookmarkurl = "http://www.doodademporium.com";
var bookmarktitle = "Purple Doodads for sale";
function addbookmark()
{
if (document.all)
window.external.AddFavorite(bookmarkurl, bookmarktitle);
}
[/script]

By placing the script's function into an external folder and file (/java/bookmark.js for example) you will be able to streamline your code down to the following:

[script Language="JavaScript1.2" src="java/bookmark.js" type="text/javascript"][/script]

It's worth remembering that this is probably one of the simplest examples of JavaScript out there and that the savings in terms of code are going to be substantial with larger scripts.
This method is also worth its weight in gold, so to speak, if you are running a number of scripts on the same page.
Just remember to create a different source file for each script, so as not to confuse matters unnecessarily.

Through the use of external JavaScript files you not only save yourself having to write (or even copy/paste) the same bulky scripts again and again, you are also saving search engine spiders from becoming seriously disillusioned with your web page and going elsewhere in search of easier prey.

Always remember that any web site should make a search engine's life as easy as possible.
If you do use JavaScript in your pages, this approach will prevent unnecessary complications when having your site indexed, whilst at the same time easing your task of coding.

About the Author

An experienced copywriter with well over a decade of authoring experience, Sasch Mayer currently lives in Larnaca, Cyprus where he writes under contract to IceGiant Web Design Services.


If nothing is showing below this means that either javascript is disabled or pc firewall Ad Bloker is preventing it from showing.

[Earn Money]


[More Traffic ]


Ads  ]