2013-03-14から1日間の記事一覧

this.formで自分のフォームを参照

忘れないようにメモ(といっても絶対忘れるだろうけど)this.formを使えば自分のフォームを参照できる(ただしAタグでは無理)複数フォームがある場合など便利 <form target="win" action="test.html" method="post"> <input type="button" onclick="openwin(this.form)" value="送信" /> </form> <script> function openwin(form){ window.open("","win"); form.submit(); } </script>