GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Simple javascript won't run 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 "Simple javascript won Watch "Simple javascript won New topic
Author

Simple javascript won't run

Eric Edwards
Greenhorn

Joined: Oct 13, 2005
Posts: 28
I am new to javascript.
Would someone please tell me why this program won't run?
I ran it on IE and FireFox, nothing other than the button showing works.
This is such a simple little program.

Thanks for any help,
Eric
I changed onclick to on click to make it throug security.
Eric Edwards
Greenhorn

Joined: Oct 13, 2005
Posts: 28
I got it figured out.
In my function I have a colon
instead of a semi-colon.
Eric
[ March 09, 2006: Message edited by: Eric Edwards ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61318
    
  66

Simply turning on the Javascript console when debugging will save you a lot of hair.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

will save you a lot of hair

and a lot of fur


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61318
    
  66

Fur I got... it's hair that's in short supply!
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Eric Edwards
Greenhorn

Joined: Oct 13, 2005
Posts: 28
Bear,
Thanks for the info on Java Console.
I didn't know such a thing existed.
My JavaScript book had some info on it which I hadn't gotten to yet.
Found out IE doesn't support it, but I have FireFox also.
I put the colon error back in and it brought it up.
Thanks,
Eric
 
GeeCON Prague 2014
 
subject: Simple javascript won't run