Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <script type="text/javascript" src="openBrowser.js"></script>
  3. <script type="text/javascript">
  4. function openURL(){
  5. var targetURL="http://myintranetsite";
  6. openBrowser(targetURL);
  7. }
  8. </script>
  9.  
  10. <BODY onLoad="openURL()">
  11. <div id="loadBrowser"><h1>Opening Browser..</h1></div>
  12. </BODY>
  13. </HTML>
  14.  
  15. var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  16. if(isChrome)
  17. {
  18. //Changes the URL to destination if the current chrome browser version is 40
  19. if(getChromeVersion()>=40)
  20. {
  21. window.location=targetURL;
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement