Loading ...
Sorry, an error occurred while loading the content.
 

Re: [JavaScript] Redirect Page using script

Expand Messages
  • Tim Sabin
    Have this line of code be executed: document.location.href = newPage.html ; --Tim Sabin ... respons.redirect(www.hotmail.com) ... --Tim Sabin
    Message 1 of 19 , Sep 2, 2005
      Have this line of code be executed:

      document.location.href = "newPage.html";

      --Tim Sabin


      > How to redirect page in Javascript as we use in ASP
      respons.redirect(www.hotmail.com)
      >
      > Thanks,
      >
      >
      >
      >
      > ---------------------------------
      > Start your day with Yahoo! - make it your home page
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      >
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >

      --Tim Sabin
    • David Smart
      It didn t change in the copy I got. However, it probably changes in the HTML version of the message. The onload is considered a security risk in an HTML
      Message 2 of 19 , Sep 2, 2005
        It didn't change in the copy I got. However, it probably changes in the HTML version of the message.

        The onload is considered a security risk in an HTML message, and is filtered out.

        Dave S
        ----- Original Message -----
        From: Carlos A. Puerta L.
        To: javascript_official@yahoogroups.com ; erik_khan@...
        Sent: Saturday, September 03, 2005 12:54 AM
        Subject: Re: [JavaScript] Redirect Page using script


        You can use this code:

        I don´t know why the window´s method change... the method is when the page load (onLoad). It appear onfiltered (I don´t know why).

        I send the code again. (If the method change, put window.on Load together.
        and that´s it!!!

        <script>
        function openPage(){
        location="http://www.hotmail.com";
        }
        window.onLoad=openPage()
        </script>


        Erik Khan <erik_khan@...> escribió:


        How to redirect page in Javascript as we use in ASP respons.redirect(www.hotmail.com)

        Thanks,




        ---------------------------------
        Start your day with Yahoo! - make it your home page

        [Non-text portions of this message have been removed]






        SPONSORED LINKS
        Basic programming language C programming language Computer programming languages The c programming language C programming language List of programming languages

        ---------------------------------
        YAHOO! GROUPS LINKS


        Visit your group "javascript_official" on the web.

        To unsubscribe from this group, send an email to:
        javascript_official-unsubscribe@yahoogroups.com

        Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


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





        ---------------------------------
        1GB gratis, Antivirus y Antispam
        Correo Yahoo!, el mejor correo web del mundo
        Abrí tu cuenta aquí

        [Non-text portions of this message have been removed]





        SPONSORED LINKS Basic programming language C programming language Computer programming languages
        The c programming language C programming language List of programming languages


        ------------------------------------------------------------------------------
        YAHOO! GROUPS LINKS

        a.. Visit your group "javascript_official" on the web.

        b.. To unsubscribe from this group, send an email to:
        javascript_official-unsubscribe@yahoogroups.com

        c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


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



        [Non-text portions of this message have been removed]
      Your message has been successfully submitted and would be delivered to recipients shortly.