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

Browser Specific redirect

Status
Not open for further replies.

struth

Programmer
Aug 26, 2001
114
GB
How can I call a browser specific redirect eg

<SCRIPT language=&quot;JavaScript&quot;>
<!--
var browserVer=parseInt(navigator.appVersion);
if (browserVer >= 4)
{
window.location='netscape4_version.htm'&quot;;
}
else
{
window.location=&quot;loadsoflayersversion.htm&quot;;
}
//-->
</SCRIPT>

at the end of a movie.

I am trying the FS command function but I can't seenm to quite get it to work - or does actionscript do it?

Many thanks for any help
 
hi
may be something like this:
in flash:
getURL('javascript:DoRedirection()')

in html (script)

function DoRedirection(){
var browserVer=parseInt(navigator.appVersion);
if (browserVer >= 4){
window.location='netscape4_version.htm'&quot;; }
else{
window.location=&quot;loadsoflayersversion.htm&quot;; }
}

but as far as i remember, javascript protocol is baadly supported in low versions of ie (less than 4) Victor
 
maybe I can get off of work early. Regards,
Anth:cool:ny
----------------------------------------
&quot;You say [red]insanity[/red] like it's a BAD THING!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top