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 snippets by Marco Piñero
Javascript: Is my browser on line?
JavaScript
0
2
1692
Javascript: convert native browser event to jQuery event.
JavaScript
0
3
1647
Javascript: Convert proper name to Capital/Title Case
JavaScript
0
0
1583
Javascript: Disable Back Button - idea #1
JavaScript
0
0
1503
Javascript: Get file name from fullpath.
JavaScript
0
0
968
Javascript: Get filename and path from full path filename
JavaScript
0
0
1426
Javascript/jQuery: Input with fixed prefix.
JavaScript
0
0
784
Javascript: ProtocolCheck
JavaScript
0
0
1658
Cordova: Call function at main App from inappbrowser.
JavaScript
0
0
980
Javascript: Beep
JavaScript
0
0
1012
Javascript: Get host info
JavaScript
0
0
750
Javascript: Vanilla async get
JavaScript
0
0
752
Regular Expressions: pattern string except preceeded by
JavaScript
0
0
610
Javascript: Open new window POSTing parameters
JavaScript
5
0
11220
Javascript: Query Params to JSON
JavaScript
0
0
617
Javascript/CSS: Ripple Effect - Vanilla
JavaScript
0
0
616
Vanilla Javascript: Upload file
JavaScript
0
0
676
Javascript: Async/Await
JavaScript
0
0
578
Javascript: Submit JSON object from form values
JavaScript
0
0
515
Javascript: Fetch POST JSON
JavaScript
0
0
472