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
I have 1 bulb with a button created by using javascript.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Blocked AccountRank #403 · 6.2K reputationPosted Sep 18, 2014, 3:15 AM EDT
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
Ramesh MaruthiRank #937 · 2.2K reputationPosted Sep 18, 2014, 5:27 AM EDT