Handy Easy Javascript
Feb 7, 2008 · 1 minute readCategory: javascript
This is post is now quite old and the the information it contains may be out of date or innacurate.
If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub
Form Submit on Change
A dead easy one to make forms automatically submit when people make a selection on a drop down menu. All you have to do is add onchange=“submit();” into your opening select tag
<form action="index.php"> <select name="view" onchange="submit();"> <option>option1</option><option>option 2</option></select> </form>
Javascript Back Button
another really easy one - you can replicate the functionality of the back button. This is especially handy if you are displaying content in a javascript window without the usual controls.
<a href="javascript: history.go(-1)"><-- Back</a>