I have some elements inside an iframe with an onclick event associated, something like:
<iframe>
...
<input type="text" onclick="somefunction(this)"/>
...
</iframe>
In the function called I try to change the value of the input, nothing special:
{
...
foo.value = "changed!"
...
}
At this point I can see in firebug that the value has changed but when the function finish the value doesn't change at all.
The same kind of thing with an onmouseover seems to work.
Any ideas?
Thanks.
Edit: Change code mistake