Hello all,
I’m trying to send some text from one page to another page that is already open. I found an example that does this but it opens up a new page every time.
///Main Page
<HTML>
<Head>
<Script Language=JavaScript>
xferWindow = “”;
tmpVal = 0;
function xferValue(){
xferWindow.document.getElementById(‘xferArea’).value = tmpVal;
}
function getValue(){
tmpVal = document.getElementById(‘origArea’).value;
xferWindow = window.open(‘TAWindow.html’);
xferWindow.opener = self;
}
</Script>
</Head>
<Body>
<center>
<h3></h3>
<form name=’nameInput’>
<form>
<textarea cols=”40″ rows=”4″ id=”origArea”>
</textarea>
</form>
<br>
<input type=’button’ value=’Show Text in New Window Text Area’ onClick=”getValue()”>
</center>
</body>
</html>
//Called Page
<HTML>
<Body>
<form>
<textarea cols=”40″ rows=”4″ id=”xferArea”>
</textarea>
</form>
<Script Language=JavaScript>
opener.xferValue();
</Script>
</Body>
</HTML>