I have the code below that turns ON my phones LED flash every time the button is clicked, but I also need the LED to turn OFF automatically after 3 seconds. Not sure how to do it, please help.
input type=”button” onclick=”ipwajax(‘enabletorch’)” value=”Turn on LED”
Assuming
ipwajax('enabletorch')enables the LED, andipwajax('disabletorch')disables it, you would want something like