In a php page, I want to make a remove button to delete data in my database. This button would be able to show a pop up box to ask 'yes' or 'no' before you confirm to delete. 

```
"<input type=submit value=Remove onclick='confirm(\"Are you sure to remove Title " . $row['AlbumName'] . " ?\");'>"

```

This code just can call the pop up box but it can't check the user either click 'yes' or 'no'.

I have tried to echo script with confirm function remove() in , but the function is not work when I set onclick=remove() .