redirect to another url.

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

    #1

    redirect to another url.

    Hello,
    Can I do in html code, redirection to another URL.
    If so, then how ?

    Thanks :)


  • kaeli

    #2
    Re: redirect to another url.

    In article <3fa5ff31$1@new s.012.net.il>, a@b.com enlightened us with...[color=blue]
    > Hello,
    > Can I do in html code, redirection to another URL.
    > If so, then how ?
    >
    > Thanks :)
    >
    >
    >[/color]

    <script type="text/javascript">
    window.location = "http://www.someserver. com/somePage.html";
    </script>

    --
    -------------------------------------------------
    ~kaeli~
    Jesus saves, Allah protects, and Cthulhu
    thinks you'd make a nice sandwich.


    -------------------------------------------------

    Comment

    • Stuart Palmer

      #3
      Re: redirect to another url.

      Look at yahoo.com...... .in HTML, look up 'meta refresh'.....or with JS look
      up 'window.locatio n'.

      Stu

      "Mr. x" <a@b.com> wrote in message news:3fa5ff31$1 @news.012.net.i l...[color=blue]
      > Hello,
      > Can I do in html code, redirection to another URL.
      > If so, then how ?
      >
      > Thanks :)
      >
      >[/color]


      Comment

      • Klaus Johannes Rusch

        #4
        Re: redirect to another url.

        Stuart Palmer wrote:
        [color=blue]
        > Look at yahoo.com...... .in HTML, look up 'meta refresh'.....or with JS look
        > up 'window.locatio n'.[/color]

        Keep in mind that search engines generally do not follow meta refresh and
        Javascript redirection, and may exclude portions of your site from their index.
        It is good practice to provide a regular link also in case the refresh does not
        work for some reason.

        --
        Klaus Johannes Rusch
        KlausRusch@atme dia.net



        Comment

        • Mr. x

          #5
          Re: redirect to another url.

          Thanks :)

          "kaeli" <tiny_one@NOSPA M.comcast.net> wrote in message
          news:MPG.1a1016 02b882e24698992 5@nntp.lucent.c om...[color=blue]
          > In article <3fa5ff31$1@new s.012.net.il>, a@b.com enlightened us with...[color=green]
          > > Hello,
          > > Can I do in html code, redirection to another URL.
          > > If so, then how ?
          > >
          > > Thanks :)
          > >
          > >
          > >[/color]
          >
          > <script type="text/javascript">
          > window.location = "http://www.someserver. com/somePage.html";
          > </script>
          >
          > --
          > -------------------------------------------------
          > ~kaeli~
          > Jesus saves, Allah protects, and Cthulhu
          > thinks you'd make a nice sandwich.
          > http://www.ipwebdesign.net/wildAtHeart
          > http://www.ipwebdesign.net/kaelisSpace
          > -------------------------------------------------[/color]


          Comment

          • Dr John Stockton

            #6
            Re: redirect to another url.

            JRS: In article <3FA6882E.EF504 61@atmedia.net> , seen in
            news:comp.lang. javascript, Klaus Johannes Rusch <KlausRusch@atm edia.net>
            posted at Mon, 3 Nov 2003 15:54:06 :-[color=blue]
            >Stuart Palmer wrote:
            >[color=green]
            >> Look at yahoo.com...... .in HTML, look up 'meta refresh'.....or with JS look
            >> up 'window.locatio n'.[/color]
            >
            >Keep in mind that search engines generally do not follow meta refresh and
            >Javascript redirection, and may exclude portions of your site from their index.
            >It is good practice to provide a regular link also in case the refresh does not
            >work for some reason.[/color]

            However, that does not mean that every instance of a computed link and
            every instance of a meta refresh must be paralleled with a corresponding
            plain link.

            It should be enough to link all your pages in a chain, and to have an
            outside link to the first page; or link in a ring, with an outside link
            to one page; or an externally-linked index page linking to all the rest.

            With a bit of programming, this can be automated for authoring time.

            --
            © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
            Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
            I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
            free, DOS/Win/UNIX, <URL:http://www.idiotsdelig ht.net/minitrue/> Update soon?

            Comment

            Working...