Please don't make it complicated.
I want to put this:
<a href="javascript:pop('link.php');">Link</a>
into one of my PHP echos,
Thanks.
<?php echo '<a href="javascript:pop(\'link.php\');">Link</a>'; ?>
I have more code than that.. print "<p><a href='?delete=" . $tagbox['id'] . "'>x</a> " . $tagbox['prename'] . "<strong><font color='#669966'>" . $tagbox['name'] . "</font></strong>: ". $tagbox['message'] . " <b>". $row['ip'] ."</b> <a href="javascript:pop('link.php');">Link</a> </p>'";
that's the original code. how would I change it?
Use a back-slash ("\") to escape the double-quotes around the the href value, since you are using double-quotes to quote the entire string.