Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I get javascript var in html ?

 
Frank Jacobsen
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that i can call a javascript funktion from my html, that returns a value and then print it out on the screen !

Can i make a globe var in javascript, and then print it out in my html, without calling a function ??

Frank Jacobsen
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
document.write(yourVariable);

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic