if ((userBrowser.browser == "Explorer" && (userBrowser.version == "8" || userBrowser.version == "7"))) {
window.open('', '_self', '');
window.close();
} else if ((userBrowser.browser == "Explorer" && userBrowser.version == "6")) {
window.opener = null;
window.close();
} else {
window.opener = '';
window.close(); // attempt to close window first, show user warning message if fails
alert("To avoid data corruption/loss. Please close this window immedietly.");
}
Showing posts with label ie. Show all posts
Showing posts with label ie. Show all posts
Sunday, October 10, 2010
Javascript to close IE6, IE7, IE8 and Firefox without confirmation box
Thursday, July 29, 2010
Fixing Overlaying Layers with Dropdown
Note: This problem only appears in IE 6 and below.When an absolutely positioned layer (div) is overlaid with a dropdown or some ActiveX component, the Z-index style sheet property does not work and the layer shows under such objects.
Reference: http://www.codeproject.com/KB/HTML/dropdown_div.aspx
Alexander Kleshchevnikov offers 3 great methods in his writeup to solve this problem. I've only tried out Method 2 and it works.
Subscribe to:
Posts (Atom)