Click to See Complete Forum and Search --> : javascript redirect function


m2m
12-24-2002, 12:38 PM
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

pyro
12-24-2002, 12:47 PM
This should do what you need. Change window.location to top.location.

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