/    Sign up×
Community /Pin to ProfileBookmark

Growing frames

My index.html is as follows:
<html>
<frameset rows=”80,*” >
<frame src=”one.html” name=”top” >
<frame src=”two.html” name=”bottom”>
</frameset>
</html>

My two.html is the following:
<html>
<body>
<div id=”res”></div>
</body>
</html>

My one.html includes the following line (this works):
document.getElementById(‘Output’).innerHTML = document.getElementById(‘Output’).innerHTML + “growing” + “<br />”;

I can grow one.html with that line; but, now I want to grow two.html from one.html, something like:
top.frames[“bottom”].document.getElementById(“res”).innerHTML =
top.frames[“bottom”].document.getElementById(“res”).innerHTML
+ “growing” + “<br />”;

However, this line doesn’t work. I can’t grow two.html from one.html.

Suggestions/Sample code welcome,
Ruben

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @rvazquez spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...