Solved

closing a popup form

Posted on 2011-03-04
6
209 Views
Last Modified: 2012-05-11
I have a small popup form that opens when a user clicks on a button . They underlying form stays open.

What would the code be to close the form? Currently, i have to click on the X
0
Comment
Question by:vbnetcoder
6 Comments
 
LVL 16

Expert Comment

by:Kalpesh Chhatrala
Comment Utility
Check this there is java script for form closing

http://forums.devx.com/showthread.php?t=148257
0
 

Author Comment

by:vbnetcoder
Comment Utility
can't i do it in asp.net?
0
 
LVL 20

Expert Comment

by:informaniac
Comment Utility
OpenPopup would be javascript right?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:vbnetcoder
Comment Utility
I am not sure what the technical term for what i have is ..... basiicly, i need the form to close and the from load event of the underlying for to run
0
 
LVL 8

Accepted Solution

by:
Anurag Agarwal earned 500 total points
Comment Utility
here is the client script tht u can use on the parent page from where the pop up window is open
and you can close the same from paren window.

<html>
<head>
   <title>JavaScript Window Close Example </title>
</head>
<script type="text/javascript">
   function popuponclick()
   {
      my_window = window.open("",
       "mywindow","status=1,width=350,height=150");
 
      my_window.document.write('<h1>The Popup Window</h1>');
   }
 
   function closepopup()
   {
      if(false == my_window.closed)
      {
         my_window.close ();
      }
      else
      {
         alert('Window already closed!');
      }
   }
</script>
<body>
   <p>
      <a href="javascript: popuponclick()">Open Popup Window</a>
   </p>
 
   <p>
      <a href="javascript: closepopup()">Close the Popup Window</a>
   </p>
</body>
</html>

Open in new window


here is the link for code help

and pls chk the example thru this code
0
 

Author Closing Comment

by:vbnetcoder
Comment Utility
ty
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now