Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

click asp button to close window

Posted on 2004-03-25
5
Medium Priority
?
642 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 160 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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/…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 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