0
我想打開瀏覽器窗口並定義窗口大小。 我試圖做到這一點,但它不工作。在asp.net中打開一個新的瀏覽器窗口throgh服務器端
Response.Write("<script>window.open('" + "Messeage.aspx" + "' , width=300px ,height=300px);</script>");
我想打開瀏覽器窗口並定義窗口大小。 我試圖做到這一點,但它不工作。在asp.net中打開一個新的瀏覽器窗口throgh服務器端
Response.Write("<script>window.open('" + "Messeage.aspx" + "' , width=300px ,height=300px);</script>");
它應該是:
Response.Write("<script>window.open('" + "Messeage.aspx" + "' , 'width=300' ,'height=300');</script>");
也許瀏覽器的彈出窗口阻止程序阻止它。 – ZippyV
有什麼問題:Response.Write(「」); –