
August 29th, 2004, 01:39 AM
|
|
Contributing User
|
|
Join Date: Jul 2004
Location: Sydney, Australia
Posts: 44
Time spent in forums: 7 m 58 sec
Reputation Power: 5
|
|
|
need help with javascript changing <td> innerHTML value.
hi,
if i have a page index.asp with frames displaying two pages (content.asp and another page), is it possible to execute some javascript code in the index.asp page that will affect the html in the content.asp page?
code in content.asp:
Code:
<table>
<tr>
<td id="myTD">myText</td>
</tr>
</table>
i would like to execute a script from the index.asp page that will change the innerHTML value of the table cell.
eg. document.getElementById("myTD").innerHTML = "newText"
this would work if the table cell was on the same page, but mine isnt.
can somebody please tell how to do this?
|