aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Can I get javascript var in html ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can I get javascript var in html ?" Watch "Can I get javascript var in html ?" New topic
Author

Can I get javascript var in html ?

Frank Jacobsen
Ranch Hand

Joined: May 17, 2002
Posts: 353
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
document.write(yourVariable);

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can I get javascript var in html ?