| Author |
Changing the contents of an html page from another
|
Chandhrasekar Saravanan
Ranch Hand
Joined: Jun 16, 2002
Posts: 57
|
|
How do i change the contents of an html page by clicking the button in a different html page. i know that we need to have several document.write statements. but how do we direct an document.write statement to modify the other page's content Thnx Chandhrasekar Saravanan
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15003
|
|
you are using the window open method, you got to reference it with an object NewWindow = window.open(blah.....) then you can do the NewWindow.document.write('Your Text'); I personally would use an innerHTML approach on the pop up window and call the script from the opener.... NewWin.ChangeText('TheDiv','The Text'); The ChangeText Function is listed here: http://www10.brinkster.com/a1ien51/JavaRanch/innerhtmltext.htm Eric
|
 |
 |
|
|
subject: Changing the contents of an html page from another
|
|
|