Why has this function used in that code?

Javascript coding ..

Moderators: egami, macek, gesf

Post Reply
Abalfazl
New php-forum User
New php-forum User
Posts: 10
Joined: Sun Feb 27, 2005 12:24 am

Tue Mar 08, 2005 2:44 am

Hello
Please check this link:
http://www.w3schools.com/js/tryit.asp?f ... tryjs_time
Why has it used this function:
function stop()

User avatar
swirlee
Moderator
Moderator
Posts: 2257
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Tue Mar 08, 2005 6:58 am

They define the stop() function at the very beginning. All it does is clear the timer.
Last edited by swirlee on Wed Mar 09, 2005 6:57 am, edited 1 time in total.
Image

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Tue Mar 08, 2005 9:14 pm

that is just a user function defined...
so that more than clear timer can be done when stop is called

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest