Groups | Blog | Home
all groups > dotnet jscript > october 2003 >

dotnet jscript : window,opener.... back to "label"


mg
10/25/2003 5:59:15 AM
window.open(" xxx.xxx .... )

plus

window.opener.Form1.txtPlace.value = ....

works fine when txtPlace is an object like textfield or
hiddenfield but not when I want to return a value from the
pop-up window (xxx.xxx) to static text (a label) in the
opener window

Joe Fawcett
10/27/2003 11:14:39 AM
[quoted text, click to view]
The simplest way is to give the label (a span or a div I presume) an id, eg
"divMessage".
window.opener.getElementById("divMessage").innerHTML = "new value";

--

Joe

AddThis Social Bookmark Button