弹出html窗口 [英] html window as pop up

查看:107
本文介绍了弹出html窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以下代码弹出一个html窗口:

 openPage.Attributes.Add(  onclick  javascript:window.open ('area.htm','_ blank','width = 400,height = 175,toolbar = no,resizable = no,location = center,screenX = 300,screenY = 200'); return false; ); 



此代码仅适用于IE浏览器。

我需要支持所有浏览器的代码。

请帮帮我。

提前致谢。

解决方案

你可以试试这种超链接 -



 <   a     onclick   =  window.open('NurseryDocs.html','name','height = 430,width = 850,screenX = 200,s creenY = 100,滚动条=是,可调整大小=无,状态=没有,位置=无'); return false;    href   =  javascript:void(0); > 托儿所入学所需的文件<   / a  >  





乐意提供帮助:)






查看此URL会对您有所帮助。



http://www.dotnetcurry.com/ShowArticle.aspx?ID=99



http://aspguy.wordpress.com/2008/06/09/how-to-open-popup-windows-in-iefirefox-and-return-values-using- ASPNET /

I am trying the below code for pop up a html window:

openPage.Attributes.Add("onclick", "javascript:window.open('area.htm','_blank','width=400,height=175,toolbar=no,resizable=no,location=center,screenX=300,screenY=200');return false;");


This code is working in IE Browser only.
I need code that supports all the browsers.
Please help me.
Thanks in advance.

解决方案

you may try this kind of hyperlink-

<a onclick=" window.open('NurseryDocs.html','name','height=430,width=850,screenX=200,screenY=100,scrollbars=yes,resizable=no,status=no,location=no'); return false;" href="javascript: void(0);">Documents Required for Nursery Admission</a>



happy to help :)


Hi,

Check this URL it will help you.

http://www.dotnetcurry.com/ShowArticle.aspx?ID=99

http://aspguy.wordpress.com/2008/06/09/how-to-open-popup-windows-in-iefirefox-and-return-values-using-aspnet/


这篇关于弹出html窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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