Message: Invalid argument. Line: 21 Char: 4 Code: 0 URI: ...
This error happens because IE does not allow spaces in the window name, for example the following code will cause the invalid argument error in IE:
To resolve this error, the solution is simple just remove the spaces from the window name and it will work fine:
Finally, the other interesting fact is that IE does not allow the window name to have dashes “-“, so you have to remove it from the window name to make the window.open API working fine in IE.