Background: I have a small page that need to be embeded into a bounch of other html pages.
Help needed:
1. Please provide the html chunk that I can use to embed the small page in to other html pages.
2. Is there a way of not using iframe? Can I use %26lt;Object%26gt; or %26lt;embed%26gt;? How?How do i can insert a html page into other html page?
You can uses frames in a frameset.
Put the frameset tags with a src=';your_html_page_to_embed.html'; attribute as shown in sources, and it will include the page in a frame.
Iframes are the way to do this more seamlessly, but IE sometimes asks for confirmation from the user about displaying certain types of pages in iframe, usually if they are hosted on a different server.
If you have the option of using PHP then you can use the following code.
%26lt;?php
include(';my_html_page_to_embed.html';);
?%26gt;
That will import all the html code into that exact position in your current HTML document and as such could distort your current layouts, if you have one.
EDIT: Link 2(boutell.com) in the sources has multiple ways to do what you ask!How do i can insert a html page into other html page?
%26lt;a href=';PAGE URL';target=';Iframe';class=';nav';%26gt;PAGE NAME%26lt;/a%26gt;
Use IFRAME or include function
Why not use IFRAME?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment