title: If a button is clicked on active tab, the another tab of the same code button should also be clicked
body: <pre><code>     &lt;h3&gt;Led 1:&lt;/h3&gt;
       &lt;button id=&quot;button1&quot; onclick=&quot;send1()&quot;&gt;Turn ON&lt;/button&gt;
  
  
  and javascript is 
  var c = 1;
          function send1() {
              var xhttp = new XMLHttpRequest();
              xhttp.onreadystatechange = function () {
                  if (this.readyState == 4 &amp;&amp; this.status == 200) {6
                      if (c == 0) {
                          document.getElementById(&quot;button1&quot;).innerHTML = &quot;Turn ON&quot;;
                          document.getElementById(&quot;button1&quot;).style.backgroundColor =&quot;red&quot;;
                          c = 1;
                      }
                      else if (c == 1) {
                          document.getElementById(&quot;button1&quot;).innerHTML = &quot;Turn OFF&quot;;
                          document.getElementById(&quot;button1&quot;).style.backgroundColor = &quot;green&quot;;
                          c = 0;
                      }
                  }
              };
              xhttp.open(&quot;GET&quot;, &quot;https://blynk.cloud/external/api/update?token=PiICxN5NNt2JWKLel25I********&amp;v0=&quot; + c, true);
              xhttp.send();
  
          }
  </code></pre>
  <p>When the button is clicked it gets a URL which contains the API key and assigns 1 or 0
  based on the button click.</p>
  <p>So, When I click the button Off in one active tab, another tab button should also be changed to Off.</p>