hello,
i have 1 bulb and a button by which the bulb gets on/off.the problem is that if i switch on the bulb and reload the page it automatically gets off..how can i stop that...Asap thank you
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Sep 18, 2014, 9:27 AM
Blocked AccountPosted Sep 18, 2014, 7:15 AM
Store the bulb state at client side and when you reload the page, check the previous state of the bulb and set that accordingly.
Thanks