I have this delete link with a javascript who will promt Yes or No. But i got nothing promted. I can guess it´s the escaping from php etc. who puts stop in my code? The "onclick" uses "'". and the message uses "'". Is that the problem? And how do i solve it?
PHP/JS
echo "<td><a href='time.php?id=".$row['id']."' onclick='return confirm('Are you sure to delete this ?');'><span class='glyphicon glyphicon-remove text-danger'></span></a></td>";