Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pop up menus/ Redirects

Status
Not open for further replies.

sjagodzi

IS-IT--Management
Aug 14, 2001
1
US
I am an ASP novice so bare with me. This is what i need to do:
when i click on a link that goes off my main site, a new window pops up with a warning(stating that you are leaving the site) and then the link for the new page.

How do i do that?
 
Use javascript to open a new window:
Code:
<script>
function newWindow(url,window_width,window_height) {
  oncWindow = window.open(url, 'Ortho', 'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+window_width+',height='+window_height);
  oncWindow.focus();
}
</script>
Setup up an ASP page to handle the pop-window and pass it a url to display as a QueryString.

Open Window Call:
Code:
newWindow(&quot;popup.asp?url=[URL unfurl="true"]www.yahoo.com&quot;,500,400);[/URL]
popup.asp (fragment):
Code:
You are about to leave this site, to continue click <a href=&quot;<%= Request(&quot;url&quot;) %>&quot;>here</a>.
Instead of this, how about just popping up the new window to the other site? Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top