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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Evaluating the parent URL to a JAvascript Popup

Status
Not open for further replies.

bluesauceuk

Programmer
Jan 1, 2001
73
GB
Hiya,

I have an issue with a popup. The popup is a standard Dreamweaver popup with an onclick event trigger.

Now... cgi.http_ref... worked if it was an <a href=&quot;toafreind.cfm&quot; target=&quot;_blank&quot;>send to a friend</a>

But not if I use a popup. How the hell can I do it.

Then I tried other cgi variables. But it didn't pass my URL variable:

so this page...
would pass without the URL variable..

I am just missing the obvious...?

Help

Please!

Mark
 
try (this is client side javasript) : this.opener.location
or this.opener.location.href
let me know
 
bluesauceuk please explian in more detail what your goal is. You want to have a link open a new window and pass URL variables to it?

We can suggest many methods as long as we know exactly what you want.

Im not sure what you mean by &quot; ... Then I tried other cgi variables. But it didn't pass my URL variable ...&quot;

The following line should open a new window and attach URL parameters to the URL:

<a href=&quot;toafreind.cfm?x=1&y=2&quot; target=&quot;_blank&quot;>send to a friend</a>


let us know if you have a more specific question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top