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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browser detection & execution

Status
Not open for further replies.

heftymike

IS-IT--Management
Oct 13, 2000
4
US
I'm using CSS for creating a navigational menu bar. How can I exit a script immediatly upon initiation when the browser version will not support the results of the script. in other words this script should only run for NS6 or IE5. This script should not run for older browsers. In this case another script will be executed.

Is there a way for force and immediate exit out of an executing script?
 
pretend the function you call to init the script is called init. then you can do this:

if(document.getElementById){init()}
else{oldFunc()} jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top