下記のソースを自動でログインできるブックマークレットを作成したいのですが私の作ったものでは動かないです。
javascript:(function(){var id='1000';var pass='1234';document.getElementsByClassName("input_id").value=id;document.getElementsByName('submit').submit();void(0)})();
どこが違うのか教えていただきたいです。
宜しくお願い致します。
===ソース以下===
<form action="login_mod.asp" method="post"> <table> <tr> <th>ID</th> <td> <input class="input_id" type="text" style="ime-mode:disabled" maxlength="13" size="24" name="member_code"> </td> </tr> </table> <table> <tr> <th>パスワード</th> <td> <input class="input_pw" type="password" maxlength="15" size="20" name="member_password"> </td> </tr> </table> <input type="hidden" value="0" name="conn_type"> <!-- <div class="login_btn"> --> <input type="image" type="submit" value="ログイン" src="images/btn_login.gif" /> <!-- </div> --> </form>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/02/03 09:33