Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying the below code for pop up a html window:
JavaScript
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.
Posted
v2
Comments
choudhary.sumit 11-Dec-12 4:47am    
in which browsers you have tested it so far?

you may try this kind of hyperlink-

HTML
<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 :)
 
Share this answer
 
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/
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900