My Form1.jsp has iframe
<iframe id="results" name="results" style="display: none;"
width="100%" height="240" frameborder="1"></iframe>
I want to access iframe id in javascript function in My form2.jsp
function Hide() {
if(document.getElementById("results").style.display=="none") {
document.getElementById("results").style.display="block";
}
}
in the place results string I want to access iframe id from Form1.jsp