-1

So I know absolutely nothing about HTML and im editing my site

I managed to create a button that opens a link

<button onclick="location.href = 'http://gotlinks.co/5Vvl';" id="myButton" class="float-left submit-button" >Click me to Verify!</button>

But it only works in firefox and not chrome, someone please help me

trkh
  • 1
  • 1

2 Answers2

0

Try this basic code .

 <button onclick="myFunction()" id="myButton" class="float-left
         submit-button" >Click me to Verify!</button>

         <script> 
             function myFunction() {
                  window.location.href = "http://gotlinks.co/5Vvl"; 
             } 
         </script>
0

use window.location.href instead

<button onclick="window.location.href = 'http://gotlinks.co/5Vvl';" id="myButton" class="float-left submit-button" >Click me to Verify!</button>