I have a javascript function and then below it I have some html. In the html I want to be able to document.write() a variable from that function above. Is this possible?? Basically if I have function x() with some variable declared inside of it, I want to be able to document.write() it somewhere else in my html. Thanks in advance.
still_learning
0
Junior Poster in Training
Recommended Answers
Jump to PostHi,
There are many methods to write on HTML through javacript. You can also have a look on 'innerHTML' propertyof javascipt.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.