<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: confirm code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 04:58:41 GMT</pubDate>
    <description>DZone Snippets: confirm code</description>
    <item>
      <title>Confirm Delete with javascript</title>
      <link>http://snippets.dzone.com/posts/show/2608</link>
      <description>// confirm() returns true or false&lt;br /&gt;// submit() is only called on true and submits the form&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;h1&gt;Howto Confirm Delete&lt;/h1&gt;&lt;br /&gt;&lt;form action="delete.html" method="post"&gt;&lt;br /&gt;&lt;input type="button" onclick="if (confirm('sure?')) submit();" value="delete"&gt;&lt;br /&gt;&lt;/form&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 16 Sep 2006 21:07:45 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2608</guid>
      <author>ovhaag (Oliver Haag)</author>
    </item>
  </channel>
</rss>
