[jQuery] Get parent url and add to a textarea

[jQuery] Get parent url and add to a textarea


Hi all!
I have some js that opens a popup window based on the rel attribute -
$('a[rel="email_page"]').click(function(){

window.open(this.href,'mywindow','height=580,width=400,scrollTo,resizable=0,scrollbars=0,location=0','false');
return false;
});
But what I want to achieve is to pass the parent url
(window.opener.href?) to the popup window and append the URL to the
contents of a textarea -
<textarea id="message" name="message" rows="18" cols="40">I wanted to
send you a link to - ** ADD URL HERE ** </textarea>
Any ideas?













    • Topic Participants

    • hello