/    Sign up×
Community /Pin to ProfileBookmark

Specifying frame

Hi,

i know that document.write puts some HTML onto the page, how do you do so into a different frame?

Thanks,

Neil

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliOct 17.2003 — parent.frameName.document.open();

parent.frameName.document.write();

parent.frameName.document.close();

try not to sue document.write itself it should always be used in the

open

write

close

format.Amd in most cases avoid using it unless you know the logical flow of your program
Copy linkTweet thisAlerts:
@neil9999authorOct 17.2003 — Thanks. The thing i'm going to be putting into the frame will be the only thing on the page, so parent.frameName.document.write(); should do.

Thanks again,

Neil
×

Success!

Help @neil9999 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.8,
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,
)...