hi,
is this what you are looking for?
you have an html screen. and in it, you have a textbox with a value in it.
you open a popup window from that screen, and in that popup window you want to access that textbox's value. If this is your problem, then use the following code.
The code inside the html screen.
- <html>
-
<head>
-
<script language="javascript">
-
function appendObj(){
-
var txtInput = document.createElement("INPUT");
-
txtInput.type="text";
-
txtInput.id="txtInput"
-
txtInput.value="The text has this value";
-
DivAppend.appendChild(txtInput);
-
}
-
</script>
-
</head>
-
<body onLoad="appendObj();">
-
<div id="DivAppend">
-
</div>
-
<a href="#" onClick="window.open('Trial2.html?TextValue=' + document.getElementById('txtInput').value,'title','250,250')">Go to PopUp</a>
-
</body>
-
</html>
Code for the popup screen, named as Trial2.html, is the following.
- <html>
-
<head>
-
<script language="javascript">
-
function displayTextValue(){
-
var request = location.href;
-
var getit = new Array();
-
getit=request.split('TextValue=');
-
var result = getit[1];
-
document.getElementById('Text1').value = result;
-
}
-
</script>
-
</head>
-
<body>
-
<a href="#" onClick="">Put Value in textBox</a>
-
<input type="text" id="Text1" value="" />
-
</body>
-
</html>
I dont know if this is exactly what you want. But i hope, it helps in some way.