[code=html]
<input type="button" name="abc" value=" Copy 2 Clipboard" onclick="window .top.value=this .value;" />
<a href="test.html " target="_blank" >Open a new window!!!!</a>
<input type="text" name="abc1" value="" onclick="this.v alue=typeof window.top.valu e!='undefined'? window.top.valu e:'';"/>
[/code]
Now i m opening the same page at a different window.
There if i click on the text box then i m getting the undefined value of top.value
Why it's happening?
can't i get the [b]top.value[b] from any children window of that top window?
Where i am wrong?
Debasis Jana.
<input type="button" name="abc" value=" Copy 2 Clipboard" onclick="window .top.value=this .value;" />
<a href="test.html " target="_blank" >Open a new window!!!!</a>
<input type="text" name="abc1" value="" onclick="this.v alue=typeof window.top.valu e!='undefined'? window.top.valu e:'';"/>
[/code]
Now i m opening the same page at a different window.
There if i click on the text box then i m getting the undefined value of top.value
Why it's happening?
can't i get the [b]top.value[b] from any children window of that top window?
Where i am wrong?
Debasis Jana.
Comment