Javascript

From KeegansWiki
Revision as of 06:37, 3 January 2013 by Keegan (talk | contribs) (Created page with "=onClick= <pre> <script type="text/javascript"> function showContent(id) { alert(id); } </script> <input type=submit value=Next onClick="showContent(1)"> </pre>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

onClick

<script type="text/javascript">
   function showContent(id)
   {
      alert(id);
   }
</script>
<input type=submit value=Next onClick="showContent(1)">