Why has this function used in that code?

Javascript coding ..

Moderators: macek, egami, gesf

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

Why has this function used in that code?

Postby Abalfazl » Tue Mar 08, 2005 2:44 am

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

User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby swirlee » 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.

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

Postby ruturajv » 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

Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest