<p>I am trying to send a user to another page using a Javascript Function:</p>

<pre><code>&lt;input type="button" name="confirm" value="nextpage" onClick="message()"&gt;
</code></pre>

<p>And my JavaScript:</p>

<pre><code>function message() {
    ConfirmStatus = confirm("Install a Virus?");

    if (ConfirmStatus == true) {
        //Send user to another page
    }
}
</code></pre>

<p>Does anyone know how to send a user to another specific page?</p>

I believe
```
window.location.href = "newpage.html";
```
will work.