Click to See Complete Forum and Search --> : Re: Javascript to detect Acrobat version.. and redirect?


luds
05-11-2003, 10:13 AM
Does anyone know if I can use Javascript to detect what version of Adobe Acrobat a user has, and if it is less than version 5 redirect them to the relevant download site?

Thanks

luds

khalidali63
05-11-2003, 12:01 PM
I know you can detect pluggin without the version in NS extremely straight forward.

if(navigator.mimeTypes["application/pdf"]){
alert("PDF Pluggin Installed = true");
}

you can try detecting pluggin in IE using the code below

alert( IsObject(CreateObject(PlugInName)))

IE solution is not error free,I can not seem to make it work on my sys,though I have successfully ran it on other sys..

Redirection is something like this..

window.location.href = "nextpage.html"