mnharshavardhan
April 20th, 2002, 02:39 AM
Hi,
How do I access HTML code of another page to be
shown in a DIV's innerHTML ? All the examples I
find just seem assign the HTML to be shown in the
DIV tag to the innerHTML property, like...
document.My_Div_Tag.innerHTML = "<P>Hi</P>"
But I want to have the "<P>Hi</P>" in another
HTML page so I can reuse it & do like...
document.My_Div_Tag.innerHTML = source_of("P.htm");
Is there a way in Javascript to access code of a
specified HTML page this way ?
Thanx a lot.
How do I access HTML code of another page to be
shown in a DIV's innerHTML ? All the examples I
find just seem assign the HTML to be shown in the
DIV tag to the innerHTML property, like...
document.My_Div_Tag.innerHTML = "<P>Hi</P>"
But I want to have the "<P>Hi</P>" in another
HTML page so I can reuse it & do like...
document.My_Div_Tag.innerHTML = source_of("P.htm");
Is there a way in Javascript to access code of a
specified HTML page this way ?
Thanx a lot.