/    Sign up×
Community /Pin to ProfileBookmark

redirect to new url

What is the correct code syntax to redirect a browser to a new web page using Javascript. I’ve searched in books and other internet sources to find this but to no avail. I am sure it is simple and common but I have not been able to tackle it yet. Help please!!!!

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@scragarAug 24.2008 — window.location.href = "somesite.com"
×

Success!

Help @tdunham 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 6.13,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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