javascript - Window.Open() is Modifying the page Layout on Internet Explorer -


i have page in asp.net called home.aspx. uses masterpage , have button calling:

response.write("<script> window.open('page2.aspx','_blank'); </script>") 

result: new tab open page2.aspx , if return home.aspx, page layout modified, central <div> moved left of page.

what can solve problem? remember occurring on internet explorer, firefox works normally!

thanks lot.

not going merit on why doing that, response.write killing html/css/js output in home.aspx page , preventing loading properly. try using:

scriptmanager.registerstartupscript(typeof(page),             "openpage2", "window.open('page2.aspx','_blank');", true); 

instead of response.write, page loads open window.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -