phpdeveloper123 Posted February 28, 2013 Share Posted February 28, 2013 Hi freaks, can we run javascript even browser is closed? if possible...please share the info. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Adam Posted February 28, 2013 Share Posted February 28, 2013 No, given JavaScript is run by the browser. Quote Link to comment Share on other sites More sharing options...
Psycho Posted February 28, 2013 Share Posted February 28, 2013 What are you trying to achieve exactly? Quote Link to comment Share on other sites More sharing options...
holden321 Posted March 2, 2013 Share Posted March 2, 2013 window.onclose Quote Link to comment Share on other sites More sharing options...
Adam Posted March 3, 2013 Share Posted March 3, 2013 window.oncloseThe window close event is not part of any standards, and so doesn't have great support across browsers. It's not recommended for use. The window unload event is standardised, however again it shouldn't be used except for in exceptional circumstances, as browsers can't cache the page when you use it. I don't think this is what the OP is after anyway. Quote Link to comment Share on other sites More sharing options...
haku Posted March 4, 2013 Share Posted March 4, 2013 The simple answer is that you cannot, as javascript runs in the browser, and if the browser closes, there is nowhere to run the javascript. That said, there is server-side javascript as well, so theoretically something could be done, but I really doubt that is the answer for the OP. Quote Link to comment Share on other sites More sharing options...
P5system Posted March 7, 2013 Share Posted March 7, 2013 No u cant run a javascript after browser is closed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.