I've been having this odd issue with Internet Explorer 11 (Win 7) and Compatibility View. What I'm trying to do is open a new window when the user clicks on a button. For some reason, if I test in Compatibility View, the new window actually opens in the same window as the requester (the one with the button). When not in Compatibility View, it works as normal.
When opening loader.html
directly and clicking the button, the window opens accordingly. Also, I have to refresh that loader page to actually have any JS scripts fire...
I've tested the same situation in Internet Explorer 10 (Win 7), and window.open()
is able to open a new window in both Compatibility View and regular standards.
Testing page setup is as follows:
home.html
— opensiframe.html
inside a new window (usingwindow.open()
)iframe.html
— opensloader.html
inside it a iframeloader.html
— opensindex.html
(usingwindow.open()
) on button click
My testing code is as follows on loader.html
:
window.onload = function (){
$('#course-launch').on('click', function(event) {
event.preventDefault();
window.open('index.html', '_blank', 'menubar=0, location=0, toolbar=0, scrollbars=1, resizable=1, width=1090, height=820');
});
}