Forums
This topic is locked
close popup window
Posted 18 Jun 2005 20:01:19
1
has voted
18 Jun 2005 20:01:19 Paul DeLanoit posted:
I have a link from my home page to a popup window in asp that has a log in form. After clicking submit it opens a mailing list application in a new window. I would like the popup window to close after clicking submit. The asp login.asp page does not have a body tag. Replies
Replied 20 Jun 2005 13:29:56
20 Jun 2005 13:29:56 Rene Bandsma replied:
The JavaScript code for closing a pop-up window is:
<pre id=code><font face=courier size=2 id=code>
javascript:window.close()
</font id=code></pre id=code>
Maybe you can use a follow-up page that is using the JavaScript code in the Body Onload tag. Maybe you will get a warning "Internet Explorer is trying to close this window, are you sure". But I think that reflects only on normal browser windows and not on pop ups
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
<pre id=code><font face=courier size=2 id=code>
javascript:window.close()
</font id=code></pre id=code>
Maybe you can use a follow-up page that is using the JavaScript code in the Body Onload tag. Maybe you will get a warning "Internet Explorer is trying to close this window, are you sure". But I think that reflects only on normal browser windows and not on pop ups
<hr><b>DMXZone support manager</b><br><a href="www.kousman.nl">Kousman web resellers</a>
Replied 20 Jun 2005 18:42:46
20 Jun 2005 18:42:46 Matt Millican replied:
Better yet, all you have to do rather than redirecting, you can just put it right on that page like this:
<script language="javascript">
window.close()
</script>
Does that make sense? I can send it to you in context if that would help at all.
Matt
Matt Millican
InternetMill.com
www.internetmill.com
(XP Pro / Dreamweaver MX / Access XP Pro/ MS SQL / ASP / VB Script / PHP, mySQL / Photoshop / Fireworks)
<script language="javascript">
window.close()
</script>
Does that make sense? I can send it to you in context if that would help at all.
Matt
Matt Millican
InternetMill.com
www.internetmill.com
(XP Pro / Dreamweaver MX / Access XP Pro/ MS SQL / ASP / VB Script / PHP, mySQL / Photoshop / Fireworks)