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

What is Framer? Join the Community
Return to index
Junhyuk Jang
Posted Dec 08 - Read on Facebook

I try to open some URL. (window.location = "http:// ... ")
Is there a way to open url in new window? (target_blank)

5 Comments

Junhyuk Jang

I wrote this,

window.open('http://framerjs.com', '_new')

it work only in browser. is there a way to open the new window in framer preview?

Koen Bok

Hmm, I'll fix this in Framer Studio.

Marc Krenn

Someone on the slack channel asked how open a link in a new tab. Bumping this old post for reference:

layer.on Events.TouchStart, =>
_____@open('http://www.google.com', '_blank')

btw this still only works in desktop browsers ;)

Marc Krenn

Here's how Jordan solved the problem:
http://share.framerjs.com/ivv3qtv312x1/

Aalok Trivedi

^^ marc's method works if your using the Frames App but not Frameless

Read the entire post on Facebook