...

View Full Version : Using Javascript to load a page into a CSS layer



dcnguyen
03-25-2005, 06:35 AM
OK, I have a div layer and I want to be able to have a javascript function that loads an external HTML file into it. Is this possible using javascript?

Philip M
03-25-2005, 07:34 AM
window.location="thepagetoload.html"

dcnguyen
03-25-2005, 08:43 AM
Can I get that to load the html into a div container, though? Sorry, I'm a little new to Javascript and am not familiar with all the specific members.

_Aerospace_Eng_
03-25-2005, 09:39 AM
yes and no, you will have to use innerHTML or possibly just use php includes but if you want to put it in a div then y not just an iframe? or just hard code the content into the div?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum