/    Sign up×
Community /Pin to ProfileBookmark

pop up and redirect

Hi,

Please, forgive me. I am really new to Javascript..
For some weird applications, I was wondering whether there was a way to pop up a window corresponding to a site and then redirect it to an other address. I came up with this code that does not work and is based more on logic than knowledge 😮 … Is there a way to pop up a window “yahoo” and rediect it to google right away (in between, I still could pause with a timeout if needed… ).

Thanks for any correction to my code/suggestions !

[code=html]<script>var winPop1 = window.open(‘http://www.googlr.com’); </script>
<script>window.location.winpop1.href =’http://www.yahoo.com’;</script>[/code]

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jan 23.2007 — It would be winpop1.location.href="asdf.html";

but it is not going to work because once that pop up hits another domain, you loose all control over it for security reasons.

Eric
×

Success!

Help @patimages spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...