/    Sign up×
Community /Pin to ProfileBookmark

how can I use <div> like frames? I want to change the content of <div> by
clicking a link of another page.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelJun 21.2007 — <div [B]name="mini"[/B] style="border:5px double #ececec" width="250" height="350"> (content of this DIV container including an anchor to "thisPage.html") </div>

and, here is the anchor:

<a href="thisPage.html" [B]target="mini"[/B]>[/QUOTE]


Whereby the DIV has content and a link to another page called "thisPage.html" that, when clicked, re-populates ("targets") the DIV with [I]that[/I] page..

([I]un-tried[/I], but a [I]similar method[/I] works for iFRAME)...
Copy linkTweet thisAlerts:
@rayhabJun 21.2007 — WebJoel,

i don't that will work. divs don't behave the same as iFrames.

If you want to change the content on a div, try looking in using javascript with innerHTML.
Copy linkTweet thisAlerts:
@ray326Jun 21.2007 — Or maybe Javascript and an object.

Or just go ahead and learn about AJAX.
×

Success!

Help @myanavrin 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...