i have an iframe and a button in my web page, my button call a function which reload the iframe. This work fine in ie but i don't know how to do in Netscape 6 ?
My script :
var ie = document.all ? 1 : 0;
var ns6 = document.getElementById && !document.all ? 1 : 0;
function fRefresh()
{
if (ie)
document.frames["INCIDENTS"].location.href = "incidents.asp";
else if (ns6)
alert(document["INCIDENTS"]);
}
My HTML Code :
<input type=button value="Rafraîchir" class=bouton OnClick="fRefresh()">
<br><br>
<iframe id="INCIDENTS" src="incidents.asp" noresize frameborder="1" framespacing="0" noresize width="660" height="300" scrolling="yes"></iframe>
My script :
var ie = document.all ? 1 : 0;
var ns6 = document.getElementById && !document.all ? 1 : 0;
function fRefresh()
{
if (ie)
document.frames["INCIDENTS"].location.href = "incidents.asp";
else if (ns6)
alert(document["INCIDENTS"]);
}
My HTML Code :
<input type=button value="Rafraîchir" class=bouton OnClick="fRefresh()">
<br><br>
<iframe id="INCIDENTS" src="incidents.asp" noresize frameborder="1" framespacing="0" noresize width="660" height="300" scrolling="yes"></iframe>