Hello friends, I am looking for such script or function which should be compatible with all browser. The function i have is only working with IE,Opera, and safari not in others. So pls help me to find out the script which should compatible with all browser. yogendra
Note that close() won't close the parent window. And in Firefox (maybe other browsers too) it will only close child windows if there are no other tabs open in it.
nico_swd is completely right on this. You have to try and think from a security perspective of the user. If they open their browser, you can't close it for them. Simple as that. However, if they click on a link on your website that opens another window, such as a modal style box, then you will be able to close it as they have trusted your site to allow the window to open in the first place.