Hey all, I'm trying to set focus on a form field but I'm using a cms where I can't edit the body tag or edit the head section.
Well, I can, but it's only on one page I want to use the code (the login page) and so I don't need the script on every page.
So here's the thing.
I've tried posting:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!-- self.focus();document.login.username.focus() //--> </SCRIPT>
before and after the form (login) and it doesn't work.
Any tips on how to set the focus without changing the body tag or adding the JS to the head?