General discussion

Locked

Closing of IE or Netscape Browser

By ramkis ·
Hi,
I am looking for a sound solution on the following:
When we launch IE or Netscape, we have the 3 buttons Mimimize, Maximize and Cancel/Close.
When my page gets launched i want to make the
Cancel/Close button greyed out, and the user
should select only my Button or link to close the page.
How can i do it programmatically.
Thanks.

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Closing of IE or Netscape Browser

by quahsays In reply to Closing of IE or Netscape ...

function doSmartPop() {
POP = window.open(WhatsNewDoc, "POP", "toolbar=0,location=0,directories=0,status=0,scrollbars=no,resizable=0,copyhistory=0,top=50,left=50,width=600,height=380");
}

this javascript function should do the trick, i'm usingIE, but i recalled netscape also workable (certain version)

Collapse -

Closing of IE or Netscape Browser

by ramkis In reply to Closing of IE or Netscape ...

I dont want a new pop-up or window.open page. It is the main page itself, where
i need to disable the Close button. The
person should be able to use only my
button which could be a pop-up on
hitting the submit button. Not on a
pop-up.
Thanks.

Collapse -

Closing of IE or Netscape Browser

by quahsays In reply to Closing of IE or Netscape ...

you could create the following javascript:
<!--
function popUp(sUrl, iWidth, iHeight) {
var oNewWin = window.open(sUrl, '', 'resizable=0,scrollbars=1,toolbars=0,margin=0,status=0,height=' + iHeight + ',width=' + iWidth);
return;
}

function popUp2(sUrl, iWidth, iHeight) {
var oNewWin = window.open(sUrl, '', 'resizable=0,scrollbars=0,toolbars=0,margin=0,status=0,height=' + iHeight + ',width=' + iWidth);
return;
}
// -->

then call using :
<a href="javascript:popUp2('xphiles/wallpaper.htm', 500, 420);">vvv</a>

yes, this example taken off x-files site,

Collapse -

Closing of IE or Netscape Browser

by ramkis In reply to Closing of IE or Netscape ...

I dont want a new pop-up or window.open page. It is the main page itself, where
i need to disable the Close button. The
person should be able to use only my
button which could be a pop-up on
hitting the submit button. Not on a
pop-up.
Thanks.

Collapse -

Closing of IE or Netscape Browser

by ramkis In reply to Closing of IE or Netscape ...

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums