
Originally Posted by
yampire
Thanks I tried this code and it works for me. I just want that if the iframe window remain hidden at first and when i click go it should appears. Could you make the code work like that plzz.
Sorry for my bad english and I am waiting for reply
Hiya yampire! Welcome to the forums! I believe this is the solution to your problem.
Code:
<html>
<head>
<title>(Type a title for your page here)</title>
<script language="JavaScript">
function setVisibility(div, visibility) {
document.getElementById(div).style.display = visibility;
}
</script>
</head>
<body >
<div id="sub3">
<iframe src="about:blank" name="myFrame" width="600" height="350" scrolling="auto" frameborder="1" onload="setVisibility('sub3', 'none');"; ></iframe>
</div>
<form action="http://www.google.com/search" target="myFrame">
Search: <input type="text" name="q"><br>
<input type="submit" value="Go!" name=type onclick="setVisibility('sub3', 'inline');";>
</form>
</body>
</html>
Bernie
Bookmarks