7/16/2011 7:15:19 AM
Title:
Browser close event
Hi All,
How to close the browser? if i click a button in mxml.
Thanks & Regards,
Venkat
7/16/2011 7:29:08 AM
use some javascript function to close the browser window. Call the javascript function from mxml.
7/16/2011 11:21:03 AM
if you close the javascript window then it will close without warning message but if you try to close main window there will be warning message to the user that window is closing.
You can use following code in flash
getURL("javascript:window.close();")
7/16/2011 11:05:11 PM
Hi,
window.close method is not working mozilla firefox 3.6
i used window.close, self.close, and window.self.close.
The above all methods are not working in mozilla firefox 3.6
Please help me.
Thanks & Regards,
krishna
7/17/2011 7:06:19 AM
New browsers are tabbed browsers so close window will not work in all the browsers. If the window is a popup window opened using javascript then this method will surely work.
7/17/2011 8:36:51 AM
Hi Friend,
Can you please explain in detail and provide the code.
Thanks & Regards,
krishna
7/18/2011 1:17:45 AM
friend wants to say that. the JavaScript code to close window will work only in some browsers for main HTML window. Close window code works in all browsers for popup JavaScript window. A popup window is a new small window that is opened by clicking a link in a HTML page. So closing that popup window is only supported by all the browsers. You can search online for JavaScript popup window, if you want to create one.