在新窗口中打开页面 [英] open pages in new window
本文介绍了在新窗口中打开页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不需要允许用户使用后退按钮,所以最好这是在新窗口中打开每一页。这是可以实现的吗?
Hi,
I need not to allow users to use back button so the best this is to open every page in new window. is this achievable?
推荐答案
string url =ExperirenceLetter.aspx?;
string s =window.open('+ url +','popup_window','width = 900,height = 600,left = 45,top = 10,scrollbars = 1');;
ClientScript.RegisterStartupScript(this.GetType( ),script,s,true);
string url = "ExperirenceLetter.aspx?";
string s = "window.open('" + url + "', 'popup_window', 'width=900,height=600,left=45,top=10,scrollbars=1');";
ClientScript.RegisterStartupScript(this.GetType(), "script", s, true);
这篇关于在新窗口中打开页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文