redirect

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sentinel

    redirect

    I am using this code to redirect to another page


    <body>
    <script language="javas cript">
    window.location ="index2.php?ui =0&ua=0&opt=for um"
    </script>
    </body>


    the problem is that in one place this code is inside a floating frame
    <iframe src="processing .page.php"></iframe>

    the script does some stuff and if successful it redirects to index2.php


    and everything works but i want it to redirect out of frame in the same
    window.


    how can i direct it out of frame?


    thanks
  • Jedi Fans

    #2
    Re: redirect

    sentinel wrote:[color=blue]
    > I am using this code to redirect to another page
    >
    >
    > <body>
    > <script language="javas cript">
    > window.location ="index2.php?ui =0&ua=0&opt=for um"
    > </script>
    > </body>
    >
    >
    > the problem is that in one place this code is inside a floating frame
    > <iframe src="processing .page.php"></iframe>
    >
    > the script does some stuff and if successful it redirects to index2.php
    >
    >
    > and everything works but i want it to redirect out of frame in the same
    > window.
    >
    >
    > how can i direct it out of frame?
    >
    >
    > thanks[/color]
    errm i answered this jus now...
    top.location="i ndex2.php?ui=0& ua=0&opt=forum"

    Comment

    • sentinel

      #3
      Re: redirect

      sentinel wrote:
      [color=blue]
      > I am using this code to redirect to another page
      >
      >
      > <body>
      > <script language="javas cript">
      > window.location ="index2.php?ui =0&ua=0&opt=for um"
      > </script>
      > </body>
      >
      >
      > the problem is that in one place this code is inside a floating frame
      > <iframe src="processing .page.php"></iframe>
      >
      > the script does some stuff and if successful it redirects to
      > index2.php
      >
      >
      > and everything works but i want it to redirect out of frame in the
      > same window.
      >
      >
      > how can i direct it out of frame?
      >
      >
      > thanks[/color]

      sorry... i don't know how this happened

      Comment

      Working...