codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Insert javascript into child window from parent window  akinfo05 at 05:25 on Wednesday, June 04, 2008
 

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.


  Re: Insert javascript into child window from parent window  MattoThePotatto at 08:21 on Wednesday, June 25, 2008
 

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 .








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Asics Onitsuka
•  burberry outlet
•  Re: Need Javascript Multiple sidebar menu with sliding effects
•  Re: Submit button, email setup
•  Re: Write text strings to Serial Port
•  Re: TO SEND Text message or URL through Clickatell
•  sending of file over network
•  project on networking
•  Re: Walk With Walter for UNICEF Sponsorship


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011