Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to transfer data between 2 html pages

    hi friends....
    I'm struggling with one problem plz help me

    -->i've a textbox and button in home.html
    -->i've another textbox in welcome.html

    now i want the textbox value entered in home.html to the textbox in welcome.html....

    using only html tags and javascript



    thanks in advance


    regards,
    venkat

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,927
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    All explained in

    http://www.javascriptkit.com/javatutors/send1.shtml

    Or you could use a cookie.

    Or even:

    First page:
    window.name = "Whatever";
    Second page:
    document.write(window.name); // <- prints "Whatever"
    Last edited by Philip M; 04-30-2007 at 10:13 AM.

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,633
    Thanks
    0
    Thanked 649 Times in 639 Posts
    There are three ways JavaScript can communicate between web pages (excluding renaming the current browser window).

    1. Query strings
    2. Cookies
    3. Frames
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New Coder
    Join Date
    Apr 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.javascriptkit.com/javatutors/send1.shtml
    its not working for transfering 2 values.....
    how it can be achieved using cookie, Query Strings, Frames...
    plz can u give a sample program tried by u



    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •