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

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

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


Andy Fuchs

Koen Bok Did you ever manage to look into this? I just have a project where this would come in pretty handy 😉

Roman Viskin

It's a must for things like google authentication

Koen Bok

Not yet, I'm sorry :-/

Marc Krenn

Roman got Google OAuth to work in the browser and in theory, I should be able to get it to work from inside of Framer IDE – without relying on a popup.

Right now it's nothing more than a POC, but if you and other people are interested, I'd consider finishing and releasing it at some point.

Junhyuk Jang

I wrote this,'', '_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, =>
[email protected]('', '_blank')

btw this still only works in desktop browsers ;)

Marc Krenn

Here's how Jordan solved the problem:

Aalok Trivedi

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

Read the entire post on Facebook