A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
System.out.println equivalent?
Herbert Kornfeld
Ranch Hand
Joined: Apr 16, 2003
Posts: 32
posted
Aug 26, 2003 11:10:00
0
How can you do what is an equivalent of System.out.println in Javascript in order to debug?
Many Thanks
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
posted
Aug 26, 2003 11:47:00
0
alert("my debug text");
sunitha reghu
Ranch Hand
Joined: Dec 12, 2002
Posts: 937
posted
Aug 26, 2003 11:47:00
0
use alert(" system testing");
Paul McKenna
Ugly Redneck
Ranch Hand
Joined: Jul 08, 2000
Posts: 1006
posted
Aug 26, 2003 11:54:00
0
to write it on the page you would use
document.write("Your Text");
Commentary From the Sidelines of history
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56152
13
I like...
posted
Aug 26, 2003 12:17:00
0
to write it on the page you would use document.write("Your Text");
This technique is only useful in on-page script that executes while the page is loading. After the page is laoded, this will not do what you want!
bear
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: System.out.println equivalent?
Similar Threads
exceptional messages
How to iterate a Set (2 steps once)
System.out.println(this)
doubt about ==
How to do debugging in Javascript
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter