views:

256

answers:

1

popup.html is popped up by script from parent.html:

window.open('popup.html', '', 'width=520, height=300,left=500,top=0');

Is it possible for popup.html to operate parent.html?

A: 

It might be better to create a function within parent.html that will do the operation itself. For example, in parent.html:

function addRecordToTable(data)
{
  //your code here
}

and in popup.html:

window.opener.addRecordToTable(data);
David Andres