ukscotth Posted April 27, 2011 Share Posted April 27, 2011 Hi, Anyone got any ideas to what I'm doing wrong with this piece of code ? function golink() { window.location.href('bumpbox.php?id=<?php echo $pageinfo['id'];?>\" class=\"bump\" rel=\"800-500'); } Many thanks in advance, Scott Quote Link to comment https://forums.phpfreaks.com/topic/234898-escape-quotes-in-javascript-location/ Share on other sites More sharing options...
nogray Posted April 28, 2011 Share Posted April 28, 2011 What url do you want? is the class="bump" the class name of the link or will it be a part of the URL Maybe this function golink() {window.location.href('bumpbox.php?id=<?php echo $pageinfo['id'];?>&class=bump&rel=800-500');} Quote Link to comment https://forums.phpfreaks.com/topic/234898-escape-quotes-in-javascript-location/#findComment-1207311 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.