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

Forum

Log In Sponsors
Partner Sites
Board index Programming JavaScript Forum

javascript function

javascript function

Postby aneuryzma on Wed May 13, 2009 7: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: 40
Joined: Mon Jan 19, 2009 10:10 am

Re: javascript function

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

Have you tried:
Code: Select all
<input type="button" value="Press Me" onclick = "var progressInterval = setInterval(function () { ... }">
~ Get me some work, I do freelancing ~
User avatar
rangana
500+ Club
 
Posts: 929
Joined: Wed Feb 27, 2008 6:14 am
Location: Cebu City Philippines


Return to JavaScript Forum

Who is online

Users browsing this forum: No registered users and 5 guests