How can i add a confirmation dialog to a submit_tag?

<%= submit_tag('Delete checked articles', :onclick => "return
confirm('Are you sure you want to delete this article?')") %>

Adam