Hello a confirm alert usually works in html like this following:
<a href="#"
onClick="confirm('confirm box pops up with text in it here');">Product Return Policy</a>
I need it in a PHP echo instead because of needed code in PHP. So I tried this in the PHP echo instead:
{echo "<a href='#'
onClick='confirm('confirm box pops up with text in it here');'>Product Return Policy</a>";}
But the confirm alert box doesn't work in the PHP like it does elsewhere. Can someone please tell me why? I'm really stuck. Nothing is wrong with the echo it all works fine. There is only something wrong with the cofirm alert box in the PHP for some reason.
Please let me know what I'm doing wrong. Thank you very much for your help.