Guest upirate Posted March 29, 2007 Share Posted March 29, 2007 <a href=javascript:"onclick=window.opener.location.href='<?= str_replace(" ", "+", $row['search'])?>'; self.close();">test</a>; As you can tell Im shaving a tough time with this. The output is not right! Quote Link to comment https://forums.phpfreaks.com/topic/44833-bad-javascript/ Share on other sites More sharing options...
hitman6003 Posted March 29, 2007 Share Posted March 29, 2007 This is the wrong forum for javascript problems... Anyway, you have your javascript call all messed up... echo '<a href="javascript: window.opener.location.href = ' . str_replace(" ", "+", $row['search']) . '; self.close();">test</a>'; Quote Link to comment https://forums.phpfreaks.com/topic/44833-bad-javascript/#findComment-217725 Share on other sites More sharing options...
Guest upirate Posted March 29, 2007 Share Posted March 29, 2007 Sorry abt that. Thanks for replying though. When I click on the link.....nothing happens Quote Link to comment https://forums.phpfreaks.com/topic/44833-bad-javascript/#findComment-217759 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.