i got a parent window that call out the child window......
in the child window i successful get the value from the parent window by using opener.document.getElementById.
because i want show the xhtml based on the value i get, so i had using PHP to compare with the language i get.
but the problem now is i cant compare although the value same as i get.
in parent window:
<input type = "hidden" name = "text1" id = "text1" value = "abc">
in child window:
<? $getValue = "<script language = 'language'>document.write(opener.document.getElementById('text1').value);</script>";
if($getValue == "abc")
but the problem now is, it always show "different" message. y like that de??
i try to show d $getValue 's value, it show out "abc".
anyone can help me n tell me what is the problem??