i have embarrassing question concerning to elementary knowledge of HTML
I would like Open/load second page in my first page
Menu button which loads second page –
<li class="current"><a href="first.html" target = "myContent">About us</a></li>
part of my firstpage is called “myContent” but (Opening of second page) doesn´t work properly (Page is opened in another Window)
<div id="myContent" name="myContent" style="background-color:#EEEEEE;height:200px;width:800;float:left;"> </div>
What amI doing wrong? Thanks
You should replace your
div#myContentwith an iframe:You may need to add some additional styling here.
Or you can use AJAX to load content with JS.