I have the following function defined in my site. It works for some people, not for others. The exception occurs on the last line in the method, where the concatenation is. I believe that because url's question mark character designating the query string is being looked as a ternary operator.
Is there something here that I'm not seeing, or is there a better way to build this string?
The url variable has a value of : "mywebpage.aspx?AccountNumber=123456"
function popUp(url) {
var myleft = (screen.width) ? (screen.width - 750) / 2 : 100;
var mytop = (screen.height) ? (screen.height - 300) / 2 : 100;
var id = new Date().getTime();
eval("page" + id + " = window.open(" + url + ", '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=325, top='" + mytop + "',left='" + myleft +");");
}