Home > Software engineering >  HTML Button direct to others link didn't work on Github Pages
HTML Button direct to others link didn't work on Github Pages

Time:11-28

Here is the problem, so I'm trying to deploy my website on Github Pages. It works, until I try to click my button which is when it got clicked will redirect to wa.me. It does redirect to wa.me when I try it in localhost, but it didn't work on my Github Pages. It came out looks like this

enter image description here

Here is the code:

<button class="btn btn-outline"
                  type="button"
                  onclick="window.open('https:wa.me/085155448143?text=Halo saya ingin mengetahui info lebih lanjut tentang kursus di Auto Mitsuda', '_blank')">
            Chat Kami
          </button>

CodePudding user response:

You are missing // in your href.

should be onclick="window.open('https://wa.me/085155448143?text=Halo saya ingin mengetahui info lebih lanjut tentang kursus di Auto Mitsuda', '_blank')"> `

  • Related