Jump to content

Recommended Posts

Posted

I would like to know if there is a way to guide some content INSIDE a div like the way an <iframe> tag works. For example by pressing this link:

 

><a href="more_info_about_Donald.html">Click</a>

 

To make appear the content INSIDE a div

><div> The info's about Donald goes here</div>

Posted

The only way I can think of is by using Javascript to show/hide the <div> block and then do one of the following:

 

1 - use the innerhtml property of the <div> block to populate it;

3 - use the W3C DOM to create a textNode object and attacht it as a child of the <div> block;

 

The first one is faster, requires less code but is not part of the W3C standard.

 

The second one is slower, requires a bit more code but is part of the W3C standard.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...