Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi All,

I am opening a child window using java script.
The code is as follows.

string strPopup = "YourPopupPage.aspx?yourParameterName=" + Server.UrlEncode(paramValue) + "&secondPraramName=" + Server.UrlEncode(paramValue); 
 
ClientScript.RegisterClientScriptBlock ("load", "<script type=\"text/javascript\">\n" + "window.open('" + strPopup + "','ApplicationName',config='left=400, top=400, height=200, width=650, status=yes, resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no');\n" + "</script>");


I want to code it in a way,where the parent window should not be accesible until the child window is not closed.

What code changes should i do in the code?

Please help me in this.

Thanks in advance.
Posted
Updated 25-May-11 2:43am
v2
Comments
parmar_punit 25-May-11 8:34am    
use popup extender 4 that.....
It is very useful in this kind of situation...
Sergey Alexandrovich Kryukov 25-May-11 9:51am    
Tag it! This is not C#. Do it now, stop confusing the experts.
There is no such thing as Java script. Java is not a scripting language. It has nothing to do with "Javascript" (it that what you mean?)
--SA

1 solution

Hope this[^] might 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