'hide()' Example : hide « Javascript Methods « JavaScript Reference

'hide()' Example

    
<html>
<body>
<script language="JavaScript">
var myPopup
function function1() {
    myPopup = window.createPopup();
    myPopup.document.body.style.backgroundColor = 'yellow';
    myPopup.show(100,100,100,200,document.body); 
} 
</script>
<input type="button" value="Show popup window" onclick="function1();">
<input type="button" value="Hide popup window" onclick="myPopup.hide();">
</body>
</html>

    
      
      








Related examples in the same category

1.'hide()' Syntax, Parameters and Note
2.'hide()' is applied to