This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Bhaskar Ravi
Posted Mar 07 - Read on Facebook

Hey all quick question. How do you open up an external URL on a click, in a new window / tab? This doesn't seem to be doing the trick:

layerA.onClick (event, layer) ->
window.open("http://framer.com/","_blank")

Thanks in advance.

2 Comments

Bhaskar Ravi

Nvm works just find. Just had to open in browser. Makes sense :)

Andy Fuchs

You can always use:
"<a href='http://example.com' target='_blank'>Open</a>"
but not programmatically from within Framer Studio - I think this is a bug or oversight in Framer Studio and would be great if 'window.open()' worked there as well.

Read the entire post on Facebook