Question: i would like for people to be able to log in into my website using their aol account.

i went to their developer website and i fallowed the instructions, 

now, in order for people to really log in into my website i need to grab their email and pass from their aol account and create an account on my website and redirect them there..

the only thing is that i can only grab the email.

any ideas?

thanks

Answer: 
Place it inside the closing `</body>` tag, so that the `query` element has loaded before it runs:

```
<!doctype html>
<html>
<head>

</head>
<body>

   <input id="query">

   <script type="text/javascript">
      function box(query){
         document.getElementById('query').focus();
      }
      box('query');
   </script>
</body>
</html>

```
Put a script tag at the bottom of the page, before the body tag. That way the DOM will (probably) have loaded and it will run:

```
<script type="text/javascript">
runmyfunction(); </script>

```

By the time the browser gets there the DOM should have loaded.

It might not have loaded, though. You could use something like Jquery to run your script when the page/dom has loaded.