The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> html inside iframe
m0jo_ro
post Oct 30 2006, 05:26 AM
Post #1





Group: Members
Posts: 2
Joined: 30-October 06
Member No.: 619



how do i make another page load into the iframe?
i mean i wrote the html code of the iframe like this
<td><iframe
src ="cv.html" height="400px" width="760px" scrolling="auto"></td>

how do i get another page load into the iframe?
thank you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 30 2006, 05:34 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,803
Joined: 9-August 06
Member No.: 6



You need to add a name attribute to the IFRAME. Then, in the link, you use the target attribute to, well, target the iframe. happy.gif
http://www.htmlhelp.com/reference/html40/special/iframe.html
http://www.htmlhelp.com/reference/html40/special/a.html

HTML
<a href="otherpage.html" target="the_frame">Link</a>
<iframe src="firstpage.html" name="the_frame">...</iframe>


--------------------
"Never go to excess, but let moderation be your guide."
- Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
m0jo_ro
post Oct 30 2006, 06:46 AM
Post #3





Group: Members
Posts: 2
Joined: 30-October 06
Member No.: 619



thank you smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 30 2006, 06:46 AM
Post #4


.
********

Group: WDG Moderators
Posts: 4,838
Joined: 10-August 06
Member No.: 7



QUOTE(m0jo_ro @ Oct 30 2006, 11:26 AM) *

CODE
<td><iframe
src ="cv.html" height="400px" width="760px" scrolling="auto"></td>



The above lacks the closing </iframe> tag. Also you can't use units in WIDTH or HEIGHT attributes (but in CSS you normally must use units). Otherwise the iframe should load cv.html, if that page exists.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 20th June 2013 - 07:23 AM