Just a hint about a simple problem could happen to you while writing javascript code to open a new browser window using window.open, it may give you the following error message box
in case you wrote it like that:
window.open("http://www.google.com", "This Is My Page", "status=1, width=300,height=500");
where is the wrong argument?
its the name argument "This Is My Page"
You can write it like that (without spaces):
window.open("http://www.google.com", "ThisIsMyPage", "status=1, width=300,height=500");
Note:
It wont give you any errors in firefox in both cases, this error just happen in IE.
11 comments:
Thanks for your post.
I really appreciate it.
I also thank you.
Thanks - I just ran into issue and this post was helpful.
Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!
Man, do I hate IE. Thanks for this.
Thanks for the Post... It saved my day....
Thank you!!
Your the best this problem drove me to drink.
Very Thank you.
Thank you!!
24.ThankYou for you help. just to add to this it will also happen if you are using – in the window name aswell as spaces Ie my-new-site. will not work in IE
Post a Comment