window.open with arguments??

Discussion in 'JavaScript' started by sheriek, Oct 7, 2008.

  1. #1
    hii
    I want to pass some data between 2 html pages.And i want to use window.open() So how i can get the value of textfield of the first.html into the second.html???

    eg

    In first.html i have 2 textfields and radio button and i have written something here So how to get it in Second.html using window.open
     
    sheriek, Oct 7, 2008 IP
  2. radyb

    radyb Active Member

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #2
    Yes, you can do this like this:

    window.open ("http://www.e-maniacs.com?myText=mytextValue",
    "mywindow","status=1,toolbar=1");

    Regards
     
    radyb, Oct 7, 2008 IP
  3. sheriek

    sheriek Guest

    Messages:
    125
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Actually there are many textfields and radio buttons in first.html So any other generic way.Because its registeration page So you think its a suitable way to send a data using urlrewriting?
     
    sheriek, Oct 7, 2008 IP
  4. radyb

    radyb Active Member

    Messages:
    278
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #4
    Ah, you didn't said that at the begining.

    If it is a registration form, it is not good.Because you can easyly expose you.

    You need to do an form submit instead.
     
    radyb, Oct 7, 2008 IP