Próbuje zatrzymać wysyłanie formularza, który pokazuje się po kliknięciu w link.
index.html
<script type="text/javascript" src="/test/jquery.js"></script> <script type="text/javascript" src="/test/thickbox.js"></script> <link rel="stylesheet" href="/test/thickbox.css" type="text/css" media="screen" />
<script language="javascript" type="text/javascript"> // <!--
document.getElementById('TB_overlay').onload = function() {
document.getElementById('Formularz').onsubmit = formularz;
}
function formularz() {
return false;
}
// -->
<a href="formularz.html?keepThis=true" class="thickbox">test
</a>
formularz.html
<form id="Formularz" name="Formularz" method="post" action="index.html"> <label for="Imie">Imię:
</label><input type="text name="Imie" id="Imie" value="" /> <label for="Imie">E-mail:
</label><input type="text name="Mail" id="Mail" value="" /> <input type="radio" value="m" name="plec" checked="checked" /> m
<input type="radio value="k" name="plec" /> k
<input type="checkbox" value="jagoda" name="kolor" /> niebieski
<input type="checkbox" value="jablko" name="kolor" /> czerwony
<input type="checkbox" value="arbuz" name="kolor" /> zielony
<input type="checkbox" value="pomarancz" name="kolor" /> pomarańcz
<input type="submit" value="Zapisz" />
Można podejrzeć:
http://one-studio.pl/test/