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 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');} 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
Archived
This topic is now archived and is closed to further replies.