Is this line $("#message").get(0).value += window.opener.location.href;
running from inside the popup? On Sep 25, 8:48 am, Stinhambo <[EMAIL PROTECTED]> wrote: > I am having some problems with that bit of code. > > Basically I am launching a popup window and this is my js file - > > $('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; > > }); > > // This passes along the URL of the parent opener when clicking "Email > this page" > $("#message").get(0).value += window.opener.location.href; > > but it seems to be causing a conflict in the rest of my code. > > My Firebug console log says - > $("#message").get(0) is undefined > > If I comment out the line, everything works nicely. > > Any idea if I can get rid of this error and still retain the > functionality?