onbeforeunload - Opening another window in Javascript when user presses X on browser -


i understand question has been asked , either answered or rejected before, promise have reasonably legit reason asking. doing uni course , 1 of requirements web app making have page (daily sales report) open once user presses x on browser, local file ans aside using window.onbeforeunload = window.open("dailyreport.html"); , opens page every time (click links etc) have hit brick wall.

also forgot mention not allowd use json or jquery @ all... sucks thats bosses want

thanks guys steve

you looking windown.onclose event.

as here

however, note not supported browsers. if uni project might able away though if requirements don't specify across-the-board browser compatibility.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -