Log in

View Full Version : Help regarding frames



mike
12-17-2005, 07:21 AM
Hi,
Can anybody help me to load a page without frameset and iframes.

Thanx.

Iiro
12-17-2005, 09:19 AM
The script:
<script type="text/javascript">
function change(what, content) {
document.getElementById(what).innerHTML=content;
}
</script>

and this to link:

<a href="#" onclick="change('mypage', 'This is new content of page.')">click!</a>

and header:

<span id="mypage">This is old content of page.</span>

Twey
12-17-2005, 10:19 AM
What do you mean by "load a page?" It involves Javascript, but have you seen the AJAX Includes Script (http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm) here at DD?