wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes onload function() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "onload function()" Watch "onload function()" New topic
Author

onload function()

Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46
Hello Everyone!

I have criteria like when ever a user log in using my application i need to check the password changed date from data base and display message in pop up as how many days since changed the password date.
I am using struts 2 and sql db.

For this I used onload function in body tag and added a function in script just put alert message for trail its working in chrome browzer, i am getting alert message. but its not working in mozilla . I need onload function for mozilla can any one help me.?

I am using mozilla 3.6

here is my code..



Or any one can tel me how to use onload function in body tag with an example???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Please read TellTheDetails. Without showing us your code, all we could do would be to guess.

And when posting code, be sure to UseCodeTags.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Have you checked the JavaScript Console for error messages?

Eric
Krish Khan
Ranch Hand

Joined: Dec 14, 2009
Posts: 46
Hi Eric,

There is no error in console...

This script is successfully running in Chrome browser... I want it to work for Mozilla
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Why di we now have two threads on this? http://www.coderanch.com/t/514420/HTML-JavaScript/Does-Onload-supported-Mozilla-Firefox

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: onload function()