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
Post a Comment