T-XU.COM      
Home |
  Home>Computer Programming>Javascript>
How to handle web surfers, who disabled JavaScript
By Michael Kashirin        [Hits: 25046]



Article describes how to create a web page that can be viewedby users, who disabled JavaScript support or whose web browserdoes not support it.

There are hundreds of millions of Web surfers today. Each ofthem uses one of multiple web browsers available now. You as aWebmaster create cool web pages that are full of graphic andJavaScript and look very impressive in modern web browsers likeInternet Explorer or FireFox. But ask yourself: "How my cool webpage will look like, if the web surfer use Linx browser (textbased) or just disabled JavaScript support?" You may think thatnumber of Linx browser users is quite small today and you canignore them, but search engines spiders does not supportJavaScript as well. You cannot ignore search engines in themodern world.

There are some safe ways how to handle search engines spidersand web surfers, who does not support JavaScript, at your webpage.

One of the approaches is provided by HTML. It is a NOSCRIPT tag.You can enclose in NOSCRIPT tags HTML code that will bedisplayed in browsers that do not support scripting. You canplace navigation hyperlinks here, if you use JavaScript menu forthis purpose. Instead of content, dynamically generated byJavaScript, you can place some static text between NOSCRIPTtags. NOSCRIPT content is invisible for web surfers, who usemodern web browsers, but it will be very useful for Linx usersand search engines spiders.

The second, more flexible approach, is using of JavaScript. Yes,you can use JavaScript to handle visitors, who does not supportJavaScript. It is simple. You can place at the web page HTMLelements with the content that should be visible for these whodoes not support scripting. Then place at the bottom of the pagesimple script code that sets ".style.display" property to "none"for such elements. Therefore, if your web page is viewed in thebrowser, which supports scripting, script code will be executedand all additional elements become invisible. If your web pageis viewed in the browser, which does not support scripting,script code will be ignored.

So, using these simple approaches, you can handle all possibleweb browsers and provide search engines spiders with additionalrelevant content, which is very important as well.
  Top Articles
*Using External JavaScript File
*Simplified form to mail: Unlim
*Capturing Video And Audio Stre
*Building HTML codes automatica
*Instant plug-in scripts that h
*Anti right-click pop up : pop
*Validating Numerical Input wit
*New Customizable JavaScript Me
*Ask Mr. D - JavaScript
*Inexpensive Area Rugs Give You
*Spice Up Your Web Site with Ja
*Evaluation of Keywords for an
  Related Articles
*Capturing Video And Audio Stre
*Simplified form to mail: Unlim
*New Customizable JavaScript Me
*Submit form conditionally - Ja
*Anti right-click pop up : pop
*Inexpensive Area Rugs Give You
*On mouse over pop up: open pop
*Evaluation of Keywords for an
*Password protected document :
*Ajaxgear Toolkit
*Building HTML codes automatica
*Javascript Password Protection


Prev: Capturing Video And Audio Streams How-To   Next: Simplified form to mail: Unlimitted input



Home | Site Map | Bookmark this site | T-XU RSS
Copyright 2007 T-XU.com - All Rights Reserved Worldwide.