Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Whats can do???

Whats can do???

Scheduled Pinned Locked Moved Web Development
helphtmlquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HoldMe
    wrote on last edited by
    #1

    I have variable in parent window, can use it in child window??? whats a code??? --- my code here in HTML var s; s = inputtext(); // function I have create one Window; // child window --- code in child window document.write('Hello ' & s);// s is variable in parent window can send s (variable) to child window?? I was try the code, but it have problem that s isnot define. please help me!!!

    C E 2 Replies Last reply
    0
    • H HoldMe

      I have variable in parent window, can use it in child window??? whats a code??? --- my code here in HTML var s; s = inputtext(); // function I have create one Window; // child window --- code in child window document.write('Hello ' & s);// s is variable in parent window can send s (variable) to child window?? I was try the code, but it have problem that s isnot define. please help me!!!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      How did you expect it to get there ? Magic ? If your child window is called child.asp, then open it like this: child.asp?s=27 although s is a poor variable name. Now in the child you can set s to = <%Request.QueryString("s")%>, in otherwords, get VBScript to read it off the URL and set the javascript variable with it. Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002

      1 Reply Last reply
      0
      • H HoldMe

        I have variable in parent window, can use it in child window??? whats a code??? --- my code here in HTML var s; s = inputtext(); // function I have create one Window; // child window --- code in child window document.write('Hello ' & s);// s is variable in parent window can send s (variable) to child window?? I was try the code, but it have problem that s isnot define. please help me!!!

        E Offline
        E Offline
        Emanuele 0
        wrote on last edited by
        #3

        You can use the "opener" property to access the parent window. ciao. - SONORK ID 100.17421 : b0nu$ -

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups