Okay, I'm not great at javascript and would love some help.
What I'd like:
Graphic button on webpage. Click it and it turns on a relay.
What I did, in the head I have:
function on()
{
widgetSetState('ID', 1);
}
This works fine, what doesn't work is the following. It's quite strange, sometimes it actually works, but the next time it won't.
<FORM>
<p>
<INPUT TYPE="image" src="yes.jpg" name="yes" onclick="yes()" >
</p>
I'm sure I've done something stupid - so any help?
</FORM>