Skip Navigation

Is it possible to hyperlink generated output?

Hi community. I am new to Perchance and coding in general but am so happy it exists! I searched the post archives, but couldn't find anything about this. Apologies if this has already been covered.

Is it possible to hyperlink part of the generator's output? For example, in this generator (https://perchance.org/wrongquotes), if I wanted to hyperlink the name of the person who said the quote so it points to another URL, is that possible?

I tried using a a href tag but that doesn't work, also tried adding a 'url' property to the 'source' object but that didn't work either.

I suppose a workaround could be to just display the full url as part of the displayed text, but just curious if a more elegant solution exists.

Thanks in advance!

5

You're viewing a single thread.

5 comments
  • You need to make the quoteSourceEl to be an <a> tag e.g. <a id="quoteSourceEl" class="source" href="#"></a> , then after you add a href value, it would be a hyperlink.