Forum Moderators: open
I am developing in PHP,JS,HTML,MySQL.
I have a list of links on a page. Each link should call a JS function to 'pop' another window up to display more detail.
The JS code:
vWindow = window.open('detail.php','Detail',style);
The deatil depends on which link was clicked.
Is there any way of populating fields in the popup window (depending on the link clicked)from the parent . I've tried things like...
vWindow.document.field1.innerHTML = "The detail text";
vWindow.field1.innerHTML = "The detail text";
Does that make sense?
Could I do it by POSTing variables to the detail.php script and then the detail can be read from the database depending on the variable that was POSTed?
Thanks in Advance
Raz