JavaScript .Code中的Window.open(),用于在禁用最大化按钮的情况下打开新窗口 [英] Window.open() in javascript .Code for opening a new window with maximie button disabled

查看:78
本文介绍了JavaScript .Code中的Window.open(),用于在禁用最大化按钮的情况下打开新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
我有一个表格,其中我的gridview中有一个按钮.当我单击该按钮时,我需要将相应的行``ID''值传递到另一个页面,该页面将在新窗口中打开.我需要一个javascript在新窗口中打开该页面的方法.此外,在新窗口中,应禁用最大化按钮,并且该窗口应在屏幕中央打开.谁能帮助我提供有关此代码的信息.谢谢您,...

Hi friends,
I have a form in which i have a button in my gridview.When i click that button, i need the corresponding row ''ID'' value to be passed to another page which will be opened in a new window.I need a javascript method to open that page in a new window.Also , in the new window the maximize button should be disabled and that window should open in the center of the screnn. Can anyonre help me with the code for this.Thanks in advance,...

推荐答案


试试这个:
Hi,
Try this:
window.open('../Test1.aspx', null, 'height=500, width=1100, status=no, resizable=no, scrollbars=yes, toolbar=no,location=no, menubar=no');


:


:

<asp:Button ID="btn" runat="server" Text="View" onClientClick='window.open(../Test1.aspx?ID=<%#Eval("IDColumnName") %>, null, height=500, width=1100, status=no, resizable=no, scrollbars=yes, toolbar=no,location=no, menubar=no)'/>


--Amit


--Amit


这篇关于JavaScript .Code中的Window.open(),用于在禁用最大化按钮的情况下打开新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆