Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Playground Settings
HTML
CSS
JAVASCRIPT
HTML Preprocessor
HTML
HTML
HAML
JADE
Stuff for <head>
Save
Cancel
CSS Preprocessor
CSS
CSS
SASS
SCSS
LESS
Stylus
Quick Add
---
Animate.css
Bootstrap
Foundation
Add external resource
External CSS
Save
Cancel
Javascript Preprocessor
Javascript
Javascript
Babel
TypeScript
Coffee
Quick Add
---
Angular
Backbone
Bootstrap
D3
Ember
GreensockTweenMax
Handlebars
jQuery
jQuery UI
Knockout.js
Lodash
Modernizr
Polymer
React
React DOM
Snap.svg
Three.js
Underscore
Zepto
Add external resource
External JS
Save
Cancel
Javascript Stopwatch using JavaScript and CSS
HTML
1
2
<
h2
>
<
time
>
00:00:00
</
time
>
</
h2
>
<
button
id
=
"start"
>
START
</
button
>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
CSS
1
2
body
{
color
:
#DAD6D6
;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JAVASCRIPT
1
var
h1
=
document
.
getElementsByTagName
(
'h2'
)
[
0
]
,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run
Expand for more options
Login
Here is a very simple Javascript stopwatch, I have created it using JavaScript and CSS, you can use it for free in your projects.
2 Responses
Cool!
0
Reply?
JT
Juliette Tworsey
8 years ago
issue: Click again button Start -> speed time x2
0
Reply?
Thắng
7 years ago
2
21
18235
Share
Created by
Avan C.
2 Responses