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
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
Javascript/jQuery
14
snippets by
Nelson Leite
Strip HTML Tags in JavaScript
JavaScript
3
5
3182
Display desktop notifications | Javascript
JavaScript
8
51
11289
Detect IE
JavaScript
0
1
1138
Detect mobile device
JavaScript
0
2
1326
Parallax background image scroll
jQuery
0
2
1356
Get page current scroll
JavaScript
0
1
1314
Popup window
JavaScript
0
1
1424
Check if an HTML element is empty using jQuery
jQuery
0
9
2405
Hide/show menu on scroll
JavaScript
0
6
1881
Show hidden menu when mouse at top of screen
jQuery
0
3
1424
Collapse tabs
jQuery
0
1
1565
Auto-suggest/complete
jQuery
0
1
1244
HTML/CSS/JavaScript: Simple timer
HTML
0
16
3243
Detect Touch Screen
JavaScript
0
5
1143