This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance 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