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
1631
Javascript: convert native browser event to jQuery event.
JavaScript
0
3
1600
Javascript: Convert proper name to Capital/Title Case
JavaScript
0
0
1480
Javascript: Disable Back Button - idea #1
JavaScript
0
0
1437
Javascript: Get file name from fullpath.
JavaScript
0
0
911
Javascript: Get filename and path from full path filename
JavaScript
0
0
1282
Javascript/jQuery: Input with fixed prefix.
JavaScript
0
0
725
Javascript: ProtocolCheck
JavaScript
0
0
1487
Cordova: Call function at main App from inappbrowser.
JavaScript
0
0
893
Javascript: Beep
JavaScript
0
0
932
Javascript: Get host info
JavaScript
0
0
683
Javascript: Vanilla async get
JavaScript
0
0
574
Regular Expressions: pattern string except preceeded by
JavaScript
0
0
558
Javascript: Open new window POSTing parameters
JavaScript
5
0
10289
Javascript: Query Params to JSON
JavaScript
0
0
546
Javascript/CSS: Ripple Effect - Vanilla
JavaScript
0
0
553
Vanilla Javascript: Upload file
JavaScript
0
0
602
Javascript: Async/Await
JavaScript
0
0
517
Javascript: Submit JSON object from form values
JavaScript
0
0
455
Javascript: Fetch POST JSON
JavaScript
0
0
420