I currently have the following print statement in a cgi script working fine:
if (!$Product_Name){
$Product_Name=" ";
print "<td><A href=\"parts.cgi?RecordNum
ber=$loops
around\">$
Product_Na
me</a></td
>\n";}
else{
print "<td><A href=\"parts.cgi?RecordNum
ber=$loops
around\">$
Product_Na
me</a></td
>\n";}
How do I incorporate the following into the <a href> as an onclick event? When I try to put it in it errors out I am assuming due to some sort of issue with the syntax?
<a href="#" onClick="opennewsletter('p
arts.cgi?R
ecordNumbe
r=$loopsar
ound'); return false">$Product_Name</a>
Start Free Trial