Whats can do???
-
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!!!
-
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!!!
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
-
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!!!
You can use the "opener" property to access the parent window. ciao. - SONORK ID 100.17421 : b0nu$ -