• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call java script on body onload in jsf

 
Akhilesh Chaurasia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am new to jsf . I want to call new popup window on body onload.

Regards
Akhil
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried? I believe there is an onload function you can access.

Is this an academic learning exercise, or a functional requirement. Remember, pop-ups are typically frowned upon and disabled by browsers. They can often cause more problems than they solve.

-Cameron McKenzie
 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do this <body onload="callThis()">

callThis : your javascript that is going to call.


remember to close the body tag at the end of the page.
 
Akhilesh Chaurasia
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for giving help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!