/    Sign up×
Community /Pin to ProfileBookmark

damn frameset document.title not working

How can a frame in a frameset read the document.title from another frame in the same frameset and then use this string to display it as a headline by using document.write?

The frame reading the document.title is static.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@requestcodeJan 20.2004 — Have you tried:

some_title=parent.frame_name.document.title

document.write(some_title)
Copy linkTweet thisAlerts:
@PittimannJan 20.2004 — Hi!

Here's a little example, how requestcode's suggestion works in the "static" frame, when a page is loaded in the other frame by clicking a link.

Please unzip the files to one folder and open titleHome.htm

Cheers - Pit

[upl-file uuid=6d06512f-3a2a-4a29-af0d-fc55c35989b1 size=1kB]vmarthirial.zip[/upl-file]
×

Success!

Help @vmarthirial 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.17,
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,
)...