Hi : ) I'm trying to open to open a window for somedomain.com/blabla + pagewherelinkwasclicked.com. But somthing is wrong, because document.location.href doesnt work. <script type="text/javascript"> function popup(ref_param){ var myString = 'http://www.somedomain.com' + ref_param; window.open(myString, 'FullRecord', 'width=1000,height=650,scrollbars=yes'); } </script> <a href="#" onclick="javascript:popup('[B][COLOR="red"]document.location.href[/COLOR][/B]')">test popup</a> Code (markup): Does anybody know what Im doing wrong?
Change this line to: <a href="#" onclick="javascript:popup(document.location.href)">test popup</a> Code (markup):