用ASP.net使ie网页没有任何工具栏,就一个窗体,并且窗体的最大最小钮禁用
菜单栏和工具栏以及地址栏都被隐藏起来,页面大小固定。。。。还有一个问题啊,就是那个窗体的最大最小控制钮怎么禁用啊!!!你给的代码窗体大小可以改变的。。...
菜单栏和工具栏以及地址栏都被隐藏起来,页面大小固定。。。。
还有一个问题啊,就是那个窗体的最大最小控制钮怎么禁用啊!!!你给的代码窗体大小可以改变的。。 展开
还有一个问题啊,就是那个窗体的最大最小控制钮怎么禁用啊!!!你给的代码窗体大小可以改变的。。 展开
1个回答
展开全部
<script type="text/javascript">
var popUpWin = 0;
function PopUpWindow(URLStr, left, top, width, height, newWin, scrollbars) {
if (typeof (newWin) == "undefined")
newWin = false;
if (typeof (left) == "undefined")
left = 100;
if (typeof (top) == "undefined")
top = 0;
if (typeof (width) == "undefined")
width = 800;
if (typeof (height) == "undefined")
height = 760;
if (newWin) {
open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
return;
}
if (typeof (scrollbars) == "undefined") {
scrollbars = 0;
}
if (popUpWin) {
if (!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
popUpWin.focus();
}
</script>
<a href="javascript:void(0);" onclick="javascript:PopUpWindow('update_profile.aspx',100,100,600,500);">点击</a>
var popUpWin = 0;
function PopUpWindow(URLStr, left, top, width, height, newWin, scrollbars) {
if (typeof (newWin) == "undefined")
newWin = false;
if (typeof (left) == "undefined")
left = 100;
if (typeof (top) == "undefined")
top = 0;
if (typeof (width) == "undefined")
width = 800;
if (typeof (height) == "undefined")
height = 760;
if (newWin) {
open(URLStr, '', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
return;
}
if (typeof (scrollbars) == "undefined") {
scrollbars = 0;
}
if (popUpWin) {
if (!popUpWin.closed) popUpWin.close();
}
popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top + '');
popUpWin.focus();
}
</script>
<a href="javascript:void(0);" onclick="javascript:PopUpWindow('update_profile.aspx',100,100,600,500);">点击</a>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询