confirm popup in the url

onclick="if(!confirm('Are you sure to delete this item?')){return false;};"
<a href="{{ route('delete/item', $my_item->product_id) }}" onclick="if(!confirm('Are you sure to delete this item?')){return false;};" >Delete</a>