<script type ="text/javascript" > var clicked = false; var xmlHttp var browser = navigator.appName; function CheckBrowser() { if (clicked == false) { xmlHttp = GetXmlHttpObject(); xmlHttp.open("GET", "../LogOut.aspx", true); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 4) { //alert(xmlhttp.responseText) } } xmlHttp.send(null) if (browser == "Netscape") alert("Nog een fijne dag."); } else { //alert("Redirected"); clicked = false; } } function GetXmlHttpObject() { var xmlHttp = null; try { // Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch (e) { //Internet Explorer try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)