cancel
Showing results for 
Search instead for 
Did you mean: 

Close window event

Former Member
0 Kudos
46

Dear Friends.

I'm back after fiew years to the BSP application.

Do you know how to control the X bottom of the internet explorer window?

regards

Accepted Solutions (0)

Answers (1)

Answers (1)

jaideeps
Advisor
Advisor
0 Kudos

hi frank,

it can be done with java script...

<script language=javascript>

var needToConfirm=true;

window.onbeforeunload = confirmExit;

function confirmExit() {

if(needToConfirm) return '<%=otr(package/confirmwindowclose)%>';

}

var origPre = htmlbSubmitPre;

function htmlbSubmitPre() {

needToConfirm=false;

origPre();

}

</script>

thanks

jaideep

*reward points if useful...