Javascript : Click button when time reach xx:xx:xx
<p>I'm using Greasemonkey and I want a code that if the time is 00:00:05 will click a button, this is the timer :</p>

<pre><code>&lt;dt id="temps"&gt;Time remaining:0:35:22&lt;/dt&gt;
</code></pre>

<p>and this is the button :</p>

<pre><code>&lt;input class="Button1" type="button" style="padding: 10px" value="OK!"&gt;
</code></pre>

<p>This is what I made ( I'm an extreme noob in JS ) :</p>

<pre><code>function clickbid() {
    if document.getElementById('temps') = 00:00:05;
    document.getElEmentsByClassName('Button1').click();
    else {
    }
}
</code></pre>

<p>Thanks a lot!</p>
