Simple HTML single password form -


i preface question with, newbie go easy on me.

i trying create simple html form single password field.

what happen when type in password take me website same name.

example: type in monkey, take monkey.html.

it sounds super easy lost.

i not find duplicate here form give 404 on wrong password.

<form onsubmit="location=this.password.value+'.html'; return false">   <input type="password" name="password" /> </form> 

the return false stop form submitting. use inline js because issue simple not worth rolling out unobtrusive script e.preventdefault , all.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -