L
lightzizo
All,
How can I disable or remove the close button in the screen.
thanks
How can I disable or remove the close button in the screen.
thanks
lightzizo said:All,
How can I disable or remove the close button in the screen.
thanks
lightzizo said:How can I disable or remove the close button in the screen.
James said:You may use javascript function attachEvent:
function window.onload()
{
window.attachEvent("onbeforeunload", Close);
}
function Close()
{
return 'Are you sure you want to close my lovely window?'
}
If you think the anwser helps you, please show your support by visiting
my website:
http://www.logicwebsolutions.com
lightzizo said:All,
How can I disable or remove the close button in the screen.
thanks
James said:You may use javascript function attachEvent:
-----------------^function window.onload()
If you think the anwser helps you, please show your support by visiting
my website:
McKirahan said:James said:You may use javascript function attachEvent:
function window.onload()
{
window.attachEvent("onbeforeunload", Close);
}
function Close()
{
return 'Are you sure you want to close my lovely window?'
}
[...]
Perhaps just the following?
<html>
<head>
<title>closer.htm</title>
<script type="text/javascript">
function closer() {
alert("This window is about to close.");
}
</script>
</head>
<body onbeforeunload="closer()">
</body>
</html>
You may use javascript function attachEvent:
function window.onload()
{
window.attachEvent("onbeforeunload", Close);
}
function Close()
{
return 'Are you sure you want to close my lovely window?'
}
If you think the anwser helps you, please show your support by visiting
my website:
lightzizo said:I'm opening a popup window from another popup and i don't want the
user to close the parent popup as long as the child is still opened.
I've thought about making the child to be modal screen but how can
i do that??
[top post]
James said:Use JavaScript function:
window.showModalDialog
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.