Why don't you just pass the value as a parameter in your call to open pageB.aspx?
<a href="javascript:void(0)"
onclick="window.open('pageB.aspx?param=' +
document.getElementById('textBoxFromPageA').value,
'Add','width=700,height=400')">
Add</a>
This will result in a URL pageB.aspx?param=Apple. Then, using pageB.aspx, you can access this value with a call Request("param").
Tommy source
share