<form action="">
<input type="text" id="id" name="id" value="">
<input type="password" id="pw" name="pw" value="">
</form>
<script>
$('#id').val('darth-vader');
$('#pw').val('i-am-your-father');
$('form').submit();
</script>
I know it would be very ridiculous question, anyway, what I am trying to do is save id and password to local storage or javaScript values, and then automatically log on. (without Server languages, I'm just making prototype on client side)
Of course, the avobe page reload infinitely, How can I do this correctly?