-7

I have some text that I want to change into a link using javascript. I've already figured out the textchanger fuction with a button but then when I put the link in my script section it doesn't recognize it. The link is not a domain but just another html page. Ever so thank you for the help! Greetings.

Luca Kiebel
  • 9,790
  • 7
  • 29
  • 44
Ruben
  • 1

2 Answers2

0

What about using normal <a> tag? Or if you are trying to open a link after button click for example, check this http://api.jquery.com/on/

Lukáš Václavek
  • 442
  • 1
  • 6
  • 12
0

You can use the temple string

const link = `<a href="Your LINK HERE">Your TEXT here</a>`
Evil-Coder
  • 11
  • 1
  • 4