foreverLearnerDevs
foreverLearnerDevs

Reputation: 69

HTML Button direct to others link didn't work on Github Pages

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%20saya%20ingin%20mengetahui%20info%20lebih%20lanjut%20tentang%20kursus%20di%20Auto%20Mitsuda', '_blank')">
            Chat Kami
          </button>

Upvotes: 0

Views: 904

Answers (1)

Authentic Science
Authentic Science

Reputation: 848

You are missing // in your href.

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

Upvotes: 1

Related Questions