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
Post a Comment