I have a JavaScript function, pop_item. I have to call this from PHP, so my PHP code is the following:
echo '<a href='javascript:pop_item('.$_code.',1)'>Link </a>';
It provides no error, but pop_item is not functioning,
The HTML output for the above is:
<a href='javascript:pop_item('ABC',1)'>Link </a>
I think the problem is in the pop_item function since the call seems to be correct. Try this:
Or
See if that works.