如何从弹出窗口中禁用/隐藏关闭按钮 [英] how to Disable/Hide the Close buttons from popupwindows
本文介绍了如何从弹出窗口中禁用/隐藏关闭按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
我有弹出窗口的javascript函数
函数New_Window(pagename ,myname,w,h,scroll,status){
LeftPosition =(screen.width)? (screen.width - w)/ 2 : 0 ;
TopPosition =(screen.height)? (screen.height -h)/ 2 : 0 ;
settings = ' height =' + h + ' ,width =' + w + ' ,top =' + TopPosition + ' ,left =' + LeftPosition + < span class =code-string>' ,scrollbars = 1' + ' < span class =code-string>,status =' + status + ' ,resizable = 0'
win = window.open(pagename,myname,settings
现在我要禁用/隐藏最小化,最大化,关闭按钮和可调整大小的处理程序。是否可能......如果可以,请告诉我如何实现它。
谢谢
解决方案
window.open(pageurl,PopupWindow, 调整大小=无);
Hello everyone .
I have a javascript function for popup windows
function New_Window(pagename, myname, w, h, scroll, status) {
LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ', left=' + LeftPosition + ',scrollbars=1' + ',status=' + status + ',resizable=0'
win = window.open(pagename, myname, settings
Now i want to Disable/Hide the Minimize, Maximize, Close buttons and the resizeable handlers too. Is it possible.... If it can be done, let me know how to achieve it.
Thanks
解决方案
window.open("pageurl","PopupWindow","resizable=no");
这篇关于如何从弹出窗口中禁用/隐藏关闭按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文