Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <script type="text/javascript" src="openBrowser.js"></script>
- <script type="text/javascript">
- function openURL(){
- var targetURL="http://myintranetsite";
- openBrowser(targetURL);
- }
- </script>
- <BODY onLoad="openURL()">
- <div id="loadBrowser"><h1>Opening Browser..</h1></div>
- </BODY>
- </HTML>
- var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
- if(isChrome)
- {
- //Changes the URL to destination if the current chrome browser version is 40
- if(getChromeVersion()>=40)
- {
- window.location=targetURL;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement