»
EnglishFrenchVietnamese

Print - Browser-Correct Download Instructions - JavaScriptBank.com

Full version: jsB@nk » Misc » Browser-Correct Download Instructions
URL: https://www.javascriptbank.com/browser-correct-download-instructions.html

Browser-Correct Download Instructions © JavaScriptBank.comDownload instructions are almost always given specifically for the IE browser on the Windows operating systems. This script will detect the user's browser and give the correct download instructions. Covers IE, Firefox, Netscape, Opera, and Macintosh. (The example below shows the proper instructions for your browser.)

Full version: jsB@nk » Misc » Browser-Correct Download Instructions
URL: https://www.javascriptbank.com/browser-correct-download-instructions.html



JavaScript
<script language="javascript">// Created by: Will Bontrager :: http://www.bontragerconnection.com/// Copyright 2005 Bontrager Connection, LLCfunction talkright() {if(navigator.appVersion.indexOf('Mac') != -1) {   // It's a Macintosh   document.write('Option+Click the link.');   return;   }if(navigator.appVersion.indexOf('Win') != -1) {   // It's Windows   document.write('Put the mouse cursor over the link. ');   document.write('Right click the link and select ');   if(navigator.userAgent.indexOf('Firefox') != -1) {      // It's Firefox      document.write('"Save Link As..."');      return;      }   if(navigator.userAgent.indexOf('Opera') != -1) {      // It's Opera      document.write('"Save target as..."');      return;      }   if(navigator.userAgent.indexOf('Gecko') != -1) {      // It's Netscape 6+      document.write('"Save Target As..."');      return;      }   if(navigator.userAgent.indexOf('IE') != -1) {      // It's IE      document.write('"Save Target As..."');      return;      }   }  // Default  document.write('Put the mouse cursor over the link. ');  document.write('Right click the link and select ');  document.write('"Save Target As..."');}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<script type="text/javascript"><!--  talkright();//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->