[BNM] Javascript question

AndrewGill73@gmail.com andrewgill73 at gmail.com
Thu Jan 22 11:20:07 GMT 2009


Hi,
I was wondering if any Javascript people could solve this problem below?

The link below sits in an iframe. When the link is clicked the
javascript opens up a pop up window and sends some variables to
examplescript.php.

The problem is that the first two variables are sent ok... But the
third variable is ignored. Somehow any text after
'window.parent.location.href' is ignored... Any ideas how to fix this?


<a title="Customer Services" class="center_text" href=""
onclick="window.open('https://example.com/examplescript.php/?user_chat_badge=1&user_http_referer='+(window.parent.location.href)+'&user_http_referer_title='+window.parent.document.title+'','new_chat_popup1','toolbar=0,resizable=0,menubar=0,scrollbars=0,width=600,height=500');
return false;">Click here to chat live with Customer Services</a>


Any pointers much appreciated!

MANY THANKS.
Andy Gill


More information about the BNMlist mailing list. Powered by Wessex Networks