Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
window.open function is working in all browsers except IE10 how to solve this issue?

function Button1_onclick() {
var w
if(window.screen.width==1366 && window.screen.height==768)
{
window.open("Login.aspx","Welcome","titlebar=0,fullscreen=0,addressbar=0,left=0,top=0,maximized=yes,width=1366,height=768,scrollbars=yes,resizable=yes,statusbar=1")
}
}
Posted

1 solution

Check and ensure popups are enabled on your browser.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 8-Nov-13 3:11am    
5ed. I would also advise to remove "if" part (makes no sense anyway)...
—SA
Abhinav S 8-Nov-13 3:55am    
Thank you SA. Yes agreed.
deepa ashwi 8-Nov-13 4:35am    
more conditions i used so only i used "if" just for sample i displayed only one condition here.
Sergey Alexandrovich Kryukov 8-Nov-13 10:31am    
Okay, maybe it made sense in the actual code, but you could have done it just in case, for debugging purposes, to eliminate the case of false...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900