如何在弹出的窗口中删除地址栏? [英] How Can I Remove Address Bar In Window Pop Up?
本文介绍了如何在弹出的窗口中删除地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
i在我的页面中有一个按钮...当我点击该按钮时...显示窗口弹出窗口,其中包含所需信息。但是在窗口弹出窗口我必须删除地址栏,我必须给出那个窗口的标题..这里有正在使用的代码..
< input type =buttonvalue =@ T(Products.EmailAFriend)class =button-2 email-a-friend-button$ b $bönclick=javascript: OpenWindow('@ Url.RouteUrl(ProductEmailAFriend,new {productId = Model.ProductId})',800,800,true); return false; />
请有人以这种方式指导我..
解决方案
< blockquote>
onClick = OpenWindow();
函数OpenWindow()
{
var url;
url = yourpage.aspx?param1 = + param1.value +& param2 = + param2.value;
window.open(url, , width = 800 ,height = 580 ; )
}
现代版本的浏览器不允许您隐藏地址栏出于安全原因。
你为什么使用弹出窗口?你也有Ajax和iframe。
hope thi s将帮助你
http://saher42.wordpress.com/2006/08/10/hiding-the-address-bar-on-pageload-using-javascript/ [ ^ ]
hi to all,
i have a button in my page...when i click that button..it's display window popup, and which contains required information.. but in window popup i have to remove address bar and i have to give title of that window..here is the code which am currently using..
<input type="button" value="@T("Products.EmailAFriend")" class="button-2 email-a-friend-button"
önclick="javascript:OpenWindow('@Url.RouteUrl("ProductEmailAFriend", new { productId = Model.ProductId })', 800, 800, true); return false;" />
please anyone guide me in that way..
解决方案
onClick="OpenWindow(); function OpenWindow() { var url; url="yourpage.aspx?param1="+param1.value+"¶m2="+param2.value; window.open(url,"","width=800,height=580;") }
Modern day versions of browsers do not let you hide the address bar for security reasons.
Why are you using a pop up window? You have Ajax and iframes also.
hope this will help u
http://saher42.wordpress.com/2006/08/10/hiding-the-address-bar-on-pageload-using-javascript/[^]
这篇关于如何在弹出的窗口中删除地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文