Forum Moderators: not2easy
I have a link like this:-
<a href='services.htm' target='mainframe'>services</a>
now I have a Stylesheet that has a div ID of 'mainframe' how do i get the above link to work, or does the link have to point to a whole new page, meaning I cant load another html page into a div region?
[edited by: Zaaka at 11:03 am (utc) on July 25, 2006]
<a href='services.htm' onclick="document.getElementById('div_name').innerHTML = 'this.href;return false;">services</a> and:
<div id="div_name">replacable content here</div> My javascript syntax may not be right, or it may be slightly more complicated than that, but the concept is there - it might be an idea for you to recheck this on the javascript board [webmasterworld.com].
Alternatively, there may be a solution I have missed.. anybody else have any ideas? :)
[edit]
I forgot a
return false; after the other javascript code to stop the browser from replacing the content, and -then- redirecting the entire page to services.htm anyway. [edited by: Setek at 4:26 am (utc) on July 26, 2006]