![]() ![]() In MSIE, the true version is after "MSIE" in userAgent else if ((verOffset=nAgt.indexOf( " MSIE"))!=-1)īrowserName = " Microsoft Internet Explorer" įullVersion = nAgt.substring(verOffset+5) If ((verOffset=nAgt.indexOf( " Version"))!=-1)įullVersion = nAgt.substring(verOffset+8) In Opera, the true version is after "Opera" or after "Version" if (verOffset=!!window.opera || ( ' OPR/') >= 0)įullVersion = nAgt.substring(verOffset+6) Var majorVersion = parseInt(navigator.appVersion, 10) Var fullVersion = ' '+parseFloat(navigator.appVersion) You may use the below URL and download the predefined(external) JavaScript: This will work on all the browsers IE,Chrome,Firefox,safari,Netscape,opera. NOTE : My code need a predefined(external) JavaScript. It will alert you plugin is disabled or enabled, installed or not installed and redirect you to flash site to install the flash player. The above piece of code will not function but below code will work on all scenarios even the Flash plugin is disabled. Step 4: Call the check() method in your onclick or onsubmit. Step 3: Copy the below two Java scripts tags and paste it inside your body tag. Right Click on your project -> New -> JavaScript Source File -> Click :Advanced -> Select :Link to File in Filesystem -> your Exteranl JS folder and click to finish. Steps to import external JS to Eclipse project: Step 2: Create JSP in eclipse and import the external JS. Step 1: Download the External JavaScipt from below link. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |