Próbuje zatrzymać wysyłanie formularza, który pokazuje się po kliknięciu w link.

index.html
  1. <script type="text/javascript" src="/test/jquery.js"></script>
  2. <script type="text/javascript" src="/test/thickbox.js"></script>
  3. <link rel="stylesheet" href="/test/thickbox.css" type="text/css" media="screen" />
  4.  
  5. <script language="javascript" type="text/javascript">
  6. // <!--
  7. document.getElementById('TB_overlay').onload = function() {
  8. document.getElementById('Formularz').onsubmit = formularz;
  9. }
  10.  
  11. function formularz() {
  12. return false;
  13. }
  14. // -->
  15. </script>
  16. </head>
  17. <a href="formularz.html?keepThis=true" class="thickbox">test</a>
  18. </body>


formularz.html
  1. <form id="Formularz" name="Formularz" method="post" action="index.html">
  2. <legend>Pole</legend>
  3. <label for="Imie">Imię:</label><input type="text name="Imie" id="Imie" value="" />
  4. <label for="Imie">E-mail:</label><input type="text name="Mail" id="Mail" value="" />
  5. <legend>Wybierz płeć</legend>
  6. <input type="radio" value="m" name="plec" checked="checked" /> m
  7. <input type="radio value="k" name="plec" /> k
  8. <legend>Wybierz dwa (2) ulubione owoce</legend>
  9. <input type="checkbox" value="jagoda" name="kolor" /> niebieski
  10. <input type="checkbox" value="jablko" name="kolor" /> czerwony
  11. <input type="checkbox" value="arbuz" name="kolor" /> zielony
  12. <input type="checkbox" value="pomarancz" name="kolor" /> pomarańcz
  13. <input type="submit" value="Zapisz" />
  14. </form>


Można podejrzeć:
http://one-studio.pl/test/