I’ve got some code that I need to alter, but I’m far from knowing much about JS (total n00b). What I am trying to have done is that the page containing this link should navigate to [url]http://www.mypage.com
Here is the original code I have to change:
[CODE]if ($thissurvey[‘printanswers’]==’Y’)
{
$completed .= “<br /><br />”
.”<a href=’www.mypage.com’ target=’_self’ onClick=’window.open(‘printanswers.php’);’>Click here to print your answers </a>”
.”</a><br />n”;
}
Here is what I have come up with so far, but it’s not working.
.”<a href=’www.mypage.com’ target=’_self’ onClick=’window.open(‘printanswers.php’);’>Click here to print your answers </a>”
Any help would be greatly appreciated.