Window args and errors
What's wrong with this picture?
window.open("example.html","Example Window", "scrollbars=no");
Moz/Firefox will pop open a new window, but IE6 will throw an "Invalid Argument" error. Why?
The second argument to
window.open is the name of the window. In IE6, this cannot contain any spaces or special characters. Some people mistakenly think this argument is for the title of the window. So they put in something human-readable (like "Example Window"), thus the error.