|
Let Me have open a popup by window.open('') method call child page.
Now i want to insert a javascript in this child page from the opener page. and Both documents are in diffrent domain.
Or can we read inner html of chield window.
Is any way to do this. Please help.
|
|
|
var childWindowName = open('url.html','childWindowName','properties of window');
childWindowName.document.bgColor='000000';
You can also use childWindowName.document.write('<html><body><table ...>') to write more html etc into the other window from the code of the first one...
Shoving the lot into a function would probably be best and calling it with a link.That way parts of the child Window don't load before it is actually open..
Good luck .
|
|
|
|
|
|
|
|