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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -