Click here to Skip to main content
15,743,299 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:
openPage.Attributes.Add("onclick", "'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.
choudhary.sumit 11-Dec-12 4:47am    
in which browsers you have tested it so far?

you may try this kind of hyperlink-

<a onclick="'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

Check this URL it will help you.
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