<html>
<head>
<script type="text/javascript">
function a(event)
{
alert(event.keyCode);
if(event.keyCode==27)
{
// OPTION 1 : START
document.getElementById("1").style.display="none";
document.getElementById("2").style.display="none";
document.getElementById("3").style.display="none";
document.getElementById("4").style.display="none";
document.getElementById("5").style.display="none";
document.getElementById("6").style.display="none";
document.getElementById("7").style.display="none";
document.getElementById("8").style.display="none";
// OPTION 1 : END
// OPTION 2 : START
for(var k=1;k<=8;k++)
{
document.getElementById(k).style.display="none";
}
// OPTION 2 : END
}
}
</script>
</head>
<body onKeyUp="a(event);" id="bd">
<iframe id="1"></iframe>
<iframe id="2"></iframe>
<iframe id="3"></iframe>
<iframe id="4"></iframe>
<iframe id="5"></iframe>
<iframe id="6"></iframe>
<iframe id="7"></iframe>
<iframe id="8"></iframe>
</body>
</html>