Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged url



1 2 Next »
Keeps your page intact if you don't wish to add to (just visit) Snipplr, by opening a new tab... also, this one works in both, Firefox + Safari/Opera.
1 1082 posted 16 years ago by dvdrtrgn
Here is a small function [[lobo235](http://www.netlobo.com/javascript_tooltips.html "Javascript Tool-tips")] wrote that will parse the window.location.href value and return the value for the parameter you specify. It does this using javascript's buil...
1 3273 posted 16 years ago by nelsnelson
1 1285 posted 16 years ago by iTony
This is a script that can parse a URL string, and return all components in a systematic way via an object. This script is very useful in places where you want to link to a page "dynamically" generated by javascript. This is usually done by adding GE...
2 1558 posted 16 years ago by jrharshath
Split and manipulate URLs easily with this module. It has similar interface to Python's urlparse library. This is patched and modified version from Denis's orignal implementation.
1 1649 posted 16 years ago by miohtama
1 2598 posted 17 years ago by Bonky
1 1574 posted 17 years ago by wizard04
0 1095 posted 17 years ago by IanLewis
1 1225 posted 17 years ago by multani
It redirects the url with JS.
0 1184 posted 17 years ago by skywalker
This gets the current page addr. and send it... Modify form action="" to send values to proper mail function - or - class.
3 1588 posted 17 years ago by skywalker
(c) copyright Stephen Chapman, 1st Jan 2005. Example: alert('http://'+uri.dom+uri.path+'/folder/file.js');
0 1204 posted 17 years ago by oxisound
This makes it easy to retrieve certain value from a url with different values appended to it.
0 1512 posted 17 years ago by iTony
Adobe Air has a few security settings that stops you executing certain AIR methods when inside the sandbox. The code below bridges between the root document and the security sandbox, allowing you to open a URL in AIR in a default browser.
1 1492 posted 17 years ago by 1man
Para marcar navegaciones según la página.
2 1556 posted 18 years ago by nicolaspar
1 1228 posted 18 years ago by nicolaspar
This function extracts a value from a url. Very useful for tracking codes. For example, you have a url http://your.url/?source=666999, and you need the source number to be placed into a variable. Use the code below.
2 1493 posted 18 years ago by 1man
Read a page's GET URL variables and return them as an associative array. ---- Example for URL http://www.example.com/index.html?hello=bonjour&goodevening=bonsoir var hash = getUrlVars(); alert(hash['hello']); // prints 'bonjour' alert(hash...
35 13798 posted 19 years ago by Roshambo
3 1546 posted 19 years ago by cochambre
See javadoc style comment in source.
2 1820 posted 19 years ago by ishikawa
1 2 Next »