#168 javascript focus on input

open
nobody
None
5
2010-02-16
2010-02-16
Anonymous
No

Hello Lobo developers!

Thank you for this wonderful browser component!
We are displaying a login webpage in a Frame that contains logic to focus on a field. However it seems that the focus is not given to the element. Is there something that we can do about this?

Best regards,
Sander

<script>
function test() {
var x = document.getElementById('x')
x.focus()
}
</script>
<body onload="test()">
<input id="x">

Discussion