Skip to content Skip to sidebar Skip to footer

How Do I Load A Page In Javascript From Its Source String?

if I have a javascript variable: var page = '

Solution 1:

By load, I assume you mean write the contents of page to the current document. If so,

document.write(page);

See http://javascript.about.com/library/blwrite.htm for some caveats to using this function.

Post a Comment for "How Do I Load A Page In Javascript From Its Source String?"