A simple way to provide a QUOTE Modal Dialog UNQUOTE that is cross browser
compatible is this:
In the web page that open up the Modal dialog window add the following
script block:
<script>
var popupWindow = null;
function doPopup()
{
// This is your function to bring up the popup window
// what will be the modal dialog
popupWindow = window.open( "popup.html", "",
"width=200,height=250,toolbar=0,status=1,menubar=0,location=0,directories=0"
, true );
}
function keepPopup()
{
if( popupWindow != null && !popupWindow.closed )
popupWindow.focus();
}
</script>
And add an onfocus() to the <body> tag
<body onfocus="keepPopup()" ...>
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.