How to Fix Invalid Argument Error in Ie8

To all who are encountering the above error in our beloved IE8 browser. Here's a solution which might help you:
//the old typical way of doing it
window.open("http://google.com", "Google", "", false); 
//for some reason it doesn't work on ie8, there are walk around but some are quite complicated

//what to do, limit the parameters:
var url = "http://google.com";
window.open(url); 

//For some reason it works this way
//You can still use the variables on other browser just filter ie8
Attached is the screenshot of the error.

0 Comments

Post a Comment

Post a Comment (0)

Previous Post Next Post
NERV Open Source
Building production Spring Boot systems?

Explore NERV — open-source Java libraries for audit trails, persistence, exception handling, and reliable event-driven architecture.