Hi,
on WVG if I write
Me.BeforeUnloadMessage=”bla bla”
when I close the tab or refresh the browser a javscript alert box ask for continue yes/no
for remove it just use
Me.BeforeUnloadMessage=””
How can I produce this with Wisej?
regards
Cristian
Hi Jens,
thank you solved!
Cristian
Hi Luca,
if I inserti in to Default.html this script don’t run
http://www.4guysfromrolla.com/demos/OnBeforeUnloadDemo1.htm
why?
thanks
Cristian
You can’t stop the browser from unloading on the server. To attach to the unload event you can only use javascript. You can do that with Wisej like in any html page in a <script> tag or an included script.
On the server side there is the Application.ApplicationRefresh event which is fired when the application is reloaded. Browsers make no different between closing a tab, refreshing, or editing the URL.
Please login first to submit.