/    Sign up×
Community /Pin to ProfileBookmark

load a link automatically in a frame

I’m sure my problem was discussed already in this forum but I do not find an answer to my problem.

On my homepage I have a page with two frames ( a top frame containing many links and another frame, which is the mainframe, where the links are loaded). I would like that one of the links ( and always the same link) loads automatically in the mainframe when the visitor visits my page( my frameset of top frame and mainframe). Do you have any hints & tips how to do it?
My guess after a long forum search is that I have to use a javascript ( which one???) and change the <body> tag into something like <body onLoad=frameset_mainframe=link to be loaded>
Where to find a tutorial that explains this html tag?

Thanks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 03.2006 — I would like that one of the links ( and always the same link) loads automatically in the mainframe when the visitor visits my page( my frameset of top frame and mainframe). Do you have any hints & tips how to do it?[/QUOTE]
If I understand your request correctly, this requires no JavaScript. You merely specify the url for the desired page in the SRC attribute of the mainframe FRAME tag in your FRAMESET document. This is normal HTML design and operation.
Copy linkTweet thisAlerts:
@paldoauthorMar 03.2006 — You are right, it is very simple. With

<FRAME SRC="sample.html"> I get what I want!!

Thanks.
Copy linkTweet thisAlerts:
@phpnoviceMar 03.2006 — You're welcome.

Cheers.
×

Success!

Help @paldo 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.20,
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,
)...