spyros1234 Posted April 30, 2007 Share Posted April 30, 2007 I have a link that I want when the user clicks on it a confirm pop-up to appear. But it’s not working. Can you please help me? echo ' </td><td width="15%" bgcolor="'.$bg_color.'" align="center" class="update"><div class="update"> <a href="index.php?autoid='. $autoid .'" class="update" OnClick= "return confirm("do you really want to delete")">DELETE</a></div></td></tr>'; Link to comment https://forums.phpfreaks.com/topic/49286-problem-with-confirm-pop-up-window/ Share on other sites More sharing options...
obsidian Posted April 30, 2007 Share Posted April 30, 2007 You're doubling up on your double quotes: Change this: OnClick= "return confirm("do you really want to delete")" to this: onclick="return confirm('Do you really want to delete?');" Link to comment https://forums.phpfreaks.com/topic/49286-problem-with-confirm-pop-up-window/#findComment-241503 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.