Create a redirect link to an another page using javascript (codeigniter) : <p>Hi please i dont succeed to make redirection in Javascript. i am using codeigniter. below is my code</p>

<pre><code>&lt;button type="submit" class="btn btn-default" id="btn_login" style="color:#ffffff; background-color:#00b9f2;" onclick="window.location.href = "https://www.google.com";"&gt;Connexion&lt;/button&gt;
</code></pre>

<p>thanks</p>
