1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <html>
<head>
<title>Nagios</title>
<script type="text/javascript">
function doRequest()
{
var url = "url avec authentification htaccess"
var xmlHttp = new XMLHttpRequest();
try
{
xmlHttp = new XMLHttpRequest();
}
catch (e)
{
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
xmlHttp.open("GET", url, false, "user", "password");
xmlHttp.send(null);
xmlHttp = null;
window.open(url,null,"fullscreen=yes, scrollbars=auto");
}
</script>
</head>
<body onLoad='doRequest()'>
</body>
</html> |
Partager