LeoLionHeart
Programmer
Hi I was wondering if you could help.
I have a web form with two html buttons and two text boxes. The buttons open up a child window using the following code:
The form that is open is a search form which displays information in a hidden input box and this value then is transferred back to the parent form, such as:
However, the getElementById("txtSec") could change to ("txtHR"). How do I determine which button was pressed in the first place e.g a session variable in javascript so that I can make the getElementById variable.
Any help would be appreciated.
Thanks
Leo.
I have a web form with two html buttons and two text boxes. The buttons open up a child window using the following code:
Code:
function OpenNew()
{
window.open('SecSearch.aspx','mywindow','width=360,height=200');
}
The form that is open is a search form which displays information in a hidden input box and this value then is transferred back to the parent form, such as:
Code:
function Populate()
{
var name=document.getElementById("savelistIndex").value;
opener.document.getElementById("txtSec").value = name;
window.close();
}
However, the getElementById("txtSec") could change to ("txtHR"). How do I determine which button was pressed in the first place e.g a session variable in javascript so that I can make the getElementById variable.
Any help would be appreciated.
Thanks
Leo.