/    Sign up×
Community /Pin to ProfileBookmark

javascript redirect function

Hi – possibly covered before on this forum (although a search didn’t help) –

I’m running a shopping cart system within a frames based site. The cart uses a javascript redirect function to link to my Worldpay account (secure server).

How can I get the Javascript redirect function to link / load the secure server’s page as the whole page (i.e. not within the frame).

The code I’m using at the moment is –

<script>window.setTimeout(‘changeurl();’,2000); function changeurl(){window.location=’https:……..

any ideas on opening this link as the ‘whole page’ as opposed to ‘same frame’

Thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@pyroDec 24.2002 — This should do what you need. Change window.location to top.location.

<script>window.setTimeout('changeurl();',2000); function changeurl(){top.location='https:........
×

Success!

Help @m2m 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 1.24,
social: @webDeveloperHQ,
});

legal: ({
terms: of use,
privacy: policy
analytics: Fullres
});
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: Anonymous,
tipped: article
amount: 1000 SATS,

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

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