Solved

click asp button to close window

Posted on 2004-03-25
5
638 Views
Last Modified: 2012-06-21
Hi there, I've got a asp page that automatically runs a asp script and then show a button thats says "process is complete", and when people click that button it is suppose to close the window.

How can I do that??

<input type="button" value="process is complete" name="B1"  id="click" onclick= .....></td>

thanks
0
Comment
Question by:weetniks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 33

Accepted Solution

by:
sajuks earned 40 total points
ID: 10675669
In the opening page:

<script>
window.open("win_op.html");
</script>

in the win_op.html (whatever you choose to name the page):
<input type="button" value="process is complete" name="B1"  id="click" onclick= "self.close()">

0
 
LVL 1

Expert Comment

by:Brandwood
ID: 10675726
<input type="button" value="process is complete" name="B1"  id="click" onclick='javascript:window.close()'></td>
0
 

Expert Comment

by:steven10
ID: 11644108
You embed the asp button within html code as follow:

<a href="#" onClick="javascript:window.close();"><asp:Button id="btnCancel" runat="server" Visible=true CssClass="button1"></asp:Button></a>

this work great in case of closing window
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
One field not displaying content (ASP Classic) 8 42
Hide cell in a table 2 41
calculate days away 11 61
Classic ASP - Display returned sql output parameter 9 54
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

737 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