Hello everyone,
I try to open multiple browser windows using javascript and the window.open() function. I want to pass a parameter through the query string to my new window like this:
window.open('http://www.myfoo.com/foopage.aspx?fooparm=1', '_blank');
This opens a new window with the correct address in the address bar but the browser displays a 404-not found. However, if I press enter in this new window, the page loads up correctly.
With a bit of trial and error, I found that using window.open without query string parameters works perfectly:
window.open('http://www.myfoo.com/foopage.aspx', '_blank');
Is there a limitation I should know about window.open and query string parameters? Is there another way to pass parameters to a new page in a new window?
Thank you very much in advance for your insight.
(Note: This script is generated server-side in C# and injected into the page using Ajax's ScriptManager.RegisterStartupScript.)