<a href='query.aspx?delete=1&id=2' onclick='return confirm('Pressing OK will delete this record. Do you want to continue'); return false;'>Delete</a> This will not return a warning..... ...