Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript Detection

Status
Not open for further replies.

tanveer91

Programmer
Nov 13, 2001
31
GB
Hi all,

I'm a novice programmer - i have noticed on some browser's my javascript random image rotator doesn't work!! ie netscape and older versons of expolorer.....

My question is using javascript how can i detect if browser supports javascript and if it doesn't, it then automatically disables javascript and display a single image.

YOU'RE HELP IS MUCH APPRECIATED
 
If a browser does not support Javascript it will not run it.
You can then place HTML for these browsers within a <noscript> tag.

eg.

<noscript>
stuff to display if browser does not support javascript
</noscript>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top