Streaming live at 10am (PST)

Link block with javascript link


#1

Hi everyone, I'm trying to use javascript:loadcontent('content'); on a link block so I can perfom a loadcontent action inside a div, I'm copying from this example:
https://preview.webflow.com/preview/ajax-content-load?preview=e55cc7510c1f2bb970c47258e369eaa4
but anytime I try to paste/type it automatically adds the http:// before the javascript, am I doing something wrong?


Click on phone number to facetime?
#2

You need a backtick. Read http://inb4.webflow.io/posts/webflow-secrets


#3

Thank you so much! :smiley:


#4

Now I'm facing this issue, when I click it, it goes to a new tab, checked and it doesn't have the open in new tab is off.


#5

I guess it was because the site wasn't published? everything works now, thanks.


#6

The backtick trick is not working when the link is a rich text child.
I need to add a opt-out link for Google Analytics, as it is described here:


And the link is inside a rich text.
What can i do?