Skip to content

Instantly share code, notes, and snippets.

@juanprimal
Last active August 29, 2015 14:27
Show Gist options
  • Select an option

  • Save juanprimal/02b768dced62ea9f9e5c to your computer and use it in GitHub Desktop.

Select an option

Save juanprimal/02b768dced62ea9f9e5c to your computer and use it in GitHub Desktop.

Revisions

  1. juanprimal revised this gist Aug 21, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    === dentro del head ===

    <script>
    function sayHi(e) {
    function prevent(e) {
    e.preventDefault();
    }
    </script>
  2. juanprimal created this gist Aug 21, 2015.
    15 changes: 15 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@

    === dentro del head ===

    <script>
    function sayHi(e) {
    e.preventDefault();
    }
    </script>



    ==== en el link ====
    <a href="#" onclick="prevent(event);" />click</a>