It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

javascript function

javascript function

Postby aneuryzma on Wed May 13, 2009 6:58 am

This function is automatically called on page load.

I want to call it again when a button is pressed. What's the syntax to call it ?

Code: Select all
//funciton
    var progressInterval = setInterval(function() {
...
}


thanks
aneuryzma
 
Posts: 41
Joined: Mon Jan 19, 2009 9:10 am

Re: javascript function

Postby rangana on Thu May 14, 2009 6:06 am

Have you tried:
Code: Select all
<input type="button" value="Press Me" onclick = "var progressInterval = setInterval(function () { ... }">
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 6 guests