[webkit-dev] javascript focus event

robbet robbet robbetwk at gmail.com
Mon Nov 10 18:31:37 PST 2008


Hi, all

I want to got the javascript focus action when webkit parse one html page
that include javascript.
just like:
*<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>js focus</title>
  <script>
    function loadfun()
    {
    var a = document.getElementById("inputid");
    a.focus();
    }
  </script>
</head>
<body onLoad="loadfun()">
<input type="text" name="text" value="ip" id="inputid"><br />
</body>
</html>*

when webkit parse the code, i need to know whether a.focus is executed, and
is this can be ? Give me some points.

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20081111/ea271c93/attachment.html>


More information about the webkit-dev mailing list