Hey modal box are use to create the popup. Here are the code for creating the modalbox.
Code:
<HTML>
<HEAD>
<TITLE>Modal Box</TITLE>
<SCRIPT>
var popWindow;
function PopDis(loc)
{
popWindow = window.open (loc,'popdis'
,'status=0,toolbar=0,height=450,width=510,location=0,menu=0,resizable=0,scrollbars=1');popWindow.opener = self;
}
function checkPop ()
{
if ((popWindow) && (!popWindow.closed)) {
popWindow.focus();
}
}
</SCRIPT>
</HEAD>
<BODY onFocus="checkPop();">
<table width=100% height=100%><tr><td>
<form>
<input>
</form>
<A href="javascript:PopDis('modalbox.html')">Create a Modal Box</a>
</td></tr></table>
</body>
</html>
Bookmarks