Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: linking html to html to iframe
04-14-2011, 10:09 AM #1
- Join Date
- Apr 2011
- Thanked 0 Times in 0 Posts
linking html to html to iframe
hi to all...
i'm a newbie in HTML stuff and now im building my first website however i have this problem encountered..
does anybody know how to link an html to another html w/ iframe?
well to illustrate i have this "index.html" and i use
<a href="page2.html">go to item2</a>
to go to page2.html.
inside the "page2.html" i have
<iframe ="sampleframe.html" ></iframe>
and inside the "sampleframe.html"
there are three <p> with an id of item1, item2,item3..
what i want is when i click the "go to item2" button from the index.html i would be redirected to the <p id="item2">sample sample </p> in sampleframe.html
i hope you could help me with this problem.. thanks a lot.
04-15-2011, 07:03 AM #2
- Join Date
- Jul 2010
- Thanked 1 Time in 1 Post
I suggest you restructure your site like this, if it's your first site.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--#include virtual="/navigation.html" --></body>
<li><a href="page1.html">PAGE 1</a></li>
<li><a href="page2.html">PAGE 2</a></li>