+ 1
Why this link in not working in button tab
7 Respuestas
+ 5
Sandeep
<a href="https://www.sololearn.com/Profile/28763786/?ref=app"><button>Buy normal balloon</button></a>
+ 3
You almost got it right! The text for your button should be placed inside the anchor tag, not after the tag has been closed..
Here is the corrected way.
<button>
<a href="https://www.sololearn.com/Profile/28763786/?ref=app">Buy normal balloon</a>
</button>
+ 3
I had this problem before, I realised that you should put the alert inside a function, then call that function onclick of the button.
+ 2
BroFar thanks
+ 1
Sololearn compilers, unfortunately, doesn`t allow the users to open some external links, your code have some errors which are mentioned by BroFar
and Chris Coder, correct those, and probably try a different link. I have tried <a href="https://www.sololearn.com>Buy normal baloons</a>, and it works, when I clicked on the link, it redirect me to the Sololearn website.