echo - Javascript inline output -
in javascript suppose have piece of code:
<div> <script type="text/javascript">var output = 'abcdefg';</script> </div> is there way "echo" (using php terminology) contents of output #test? is, output string inline, assuming have no standard way of traversing or selecting dom?
document.write("..."); write contents of output, in doing so, replaces entire document output.
the solution i'm looking should act same way php echo would: write output document inline.
"kosher" code aside, yes.
document.write()
Comments
Post a Comment