I have a form that posts to the page it os on and I would like to use some javascript that will make the page maintain it’s scroll position when the form submits. The script that I have uses onsubmit but I already have another script using that.
Is it possible to use onsubmit() for more than one script eg..
onsubmit="return validateForm(), return saveScroll()"
Thanks
Or you could do
onsubmit="validateForm();saveScroll(); return false;"