Question

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?

Was it helpful?

Solution

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);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top