Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inserting HTML file into an innerHTML mouseover?

Status
Not open for further replies.

furan

Programmer
Aug 17, 2001
17
0
0
GB
OK,
I have a diagram which calls mouseover texts to display HTML

i.e
HTML
<Area coords=&quot;x,y,z,a&quot; onmouseover=&quot;textFunc()&quot;>

JS
function textFunc() {
document.all.divdisplay.innerHTML=(&quot;<p>Hi</p>&quot;);
}

This works fine but the text I am displaying is a duplicate of effort as the text already exists in separate HTML files...

ideally I want to do something like this

function textFunc() {
document.all.divdisplay.innerHTML= someHTMLFile.htm
}

This doesn't seem to work though.... help...


 
use iframe for this purposes.. Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top