Team:Virginia/Sandbox pop

From 2009.igem.org

(Difference between revisions)
 
(3 intermediate revisions not shown)
Line 4: Line 4:
<script type="text/javascript">
<script type="text/javascript">
-
function isIE() {
+
function init() {
-
      if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) {
+
if (/msie/i.test(navigator.userAgent)) { alert("This page is optimized Firefox. It will probably not display properly in Internet Explorer."); }
-
      alert("The DOM is ready!");
+
-
      }
+
}
}
-
function detectBrowser()
+
window.onload = init;  
-
{
+
-
var browser=navigator.appName;
+
-
if (browser=="Microsoft Internet Explorer")
+
-
  {
+
-
  alert("Your browser is good enough!");
+
-
  }
+
-
}
+
-
 
+
</script>
</script>
</head>
</head>
-
<body onload="detectBrowser()">
+
<body>
<a href="https://2009.igem.org/wiki/index.php?title=Team:Virginia/Sandbox_pop&action=edit">edit</a>
<a href="https://2009.igem.org/wiki/index.php?title=Team:Virginia/Sandbox_pop&action=edit">edit</a>
<br>
<br>

Latest revision as of 02:37, 22 October 2009

edit

Testing