Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access varibale through pop-up?

Status
Not open for further replies.

shmmeee

Programmer
Apr 17, 2001
104
GB
Hi,
I was wandering if it's possible to access a global variable in one page from a pop-up created by that page. Failing that, how do you access a form element from a pop-up is it just window.opener.document.forms.....?
 
yes, shmmeee, it might be just like u wrote:
window.opener.document.forms.formname.fieldname.value="new from popup"

& 2 refer 2 any global variable just write
window.variable, where window might be opener or some windowname
(windowname got by windowname=window,open(..) or wnd=window.open('url',windowname,prefs) - dont remember, try both ways) regards, vic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top