So I've got this code to open up a gallery window, passing which category and which number/item from that category to display. It's working fine in Firefox and Chrome, but IE 9 keeps breaking on the window.open line, what am I doing wrong?
function newWindow(cat,n) {
var newWindow = "display.php?cat=" + cat + "&n=" + n;
var windowOpen = window.open (newWindow, 'Portfolio Display', 'height=622,width=960,toolbar=0,menubar=0,scrollbars=0,resizable=0,location=0,directories=0,status=0');
windowOpen.focus();
};
The newWindow variable was so that I didn't have to have a long string of quotes in there (just making sure that wasn't the error.