Results 1 to 2 of 2
  1. #1
    fam2315 is offline Member
    Join Date
    Feb 2011
    Posts
    78
    Rep Power
    0

    Default JavaScript after page loads

    Is there anyway to automatticaly run a block of javascript (a function) once a JSP loads, as opposed to having the javascript triggered by a button click, or checking a checkbox, etc.
    Last edited by fam2315; 08-17-2011 at 07:06 PM.

  2. #2
    go4soumya is offline Member
    Join Date
    Oct 2010
    Posts
    32
    Rep Power
    0

    Default

    ideally this question should be in a javascript forum...

    Still, you can do that from the jsp page like this
    <body onload="YourJSFunction()">

    good luck :)

Similar Threads

  1. How to Export web page(jsp page) to excel using jsp or servlets or javascript
    By techsing14 in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-25-2011, 11:08 AM
  2. JSP/Javascript Page Pagination
    By maas in forum JavaServer Pages (JSP) and JSTL
    Replies: 4
    Last Post: 08-04-2010, 10:29 AM
  3. Replies: 2
    Last Post: 03-23-2009, 09:02 AM
  4. scriplet in javascript function in jsp page
    By Renjini in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 05-21-2008, 01:07 PM
  5. javascript sliderbar problem with JSP page
    By prakash.eng in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 12-17-2007, 08:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •