Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 4:39 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ]  Bookmark and Share
Author Message
 Post subject: javascript function
PostPosted: Wed May 13, 2009 7:58 am 
Offline

Joined: Mon Jan 19, 2009 10:10 am
Posts: 40
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:
//funciton
    var progressInterval = setInterval(function() {
...
}


thanks


Top
 Profile  
 
 Post subject: Re: javascript function
PostPosted: Thu May 14, 2009 7:06 am 
Offline
500+ Club
User avatar

Joined: Wed Feb 27, 2008 6:14 am
Posts: 929
Location: Cebu City Philippines
Have you tried:
Code:
<input type="button" value="Press Me" onclick = "var progressInterval = setInterval(function () { ... }">

_________________
~ Get me some work, I do freelancing ~


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review


Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley