Skip to content

Instantly share code, notes, and snippets.

@dgarber
Created January 15, 2015 03:04
Show Gist options
  • Save dgarber/0ddf49980abcf644edd6 to your computer and use it in GitHub Desktop.
Save dgarber/0ddf49980abcf644edd6 to your computer and use it in GitHub Desktop.
Generic Browser Warning
<script type="text/javascript">
var $buoop = {
vs:{i:9},
//test: true, //use for testing
text: "<b>Warning:</b> Your internet browser is not supported by this web application and some features may not work correctly. Please consider upgrading to the latest version of Internet Explorer, Firefox, or Chrome."};
$buoop.ol = window.onload;
window.onload=function(){
try {if ($buoop.ol) $buoop.ol();}catch (e) {}
var e = document.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", "//browser-update.org/update.js");
document.body.appendChild(e);
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment