We help IT Professionals succeed at work.
Get Started

popup: close it then redirect to web page

dklauk asked
Last Modified: 2010-05-18
In an asp page I use an "onlick" to "window.open" a popup.  From within the popup I want to let the user go to a specific page of the current website and to close the popup.

I have tried several approaches but can't seem to make the close and redirect  work.

Here's the code in the popup .asp...
=== === === ===
function RedirectToContactPage()
window.location.href = 'http://trulyscrumptioussc.com/contact.asp'
// -->
 <table height="10" border="0"><tr align="left"><td width="500"><SPAN class="smalltitle">For more information <A href="#" onclick="Javascript:RedirectToContactPage();">contact us</A> online or call us at 803.957.2092.</SPAN>
</td><td align="right" height="10"><img src="picts/spacer.gif" width="100" height="10" border="0"><a href="#" onclick="window.close()">Close Window</a></td></tr></table>
 === === === ===
Thanks for any help.
Watch Question
This problem has been solved!
Unlock 1 Answer and 9 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE