Les Partages de Memiks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
The Lazy Man's URL Parsing in JavaScript | Joe Zim's JavaScript Blog http://www.joezimjs.com/javascript/the-lazy-mans-url-parsing/
Wed May 9 16:19:24 2012 archive.org
QRCode
thumbnail

lire une URL grace au DOM ? nativement !

*var parser = document.createElement('a');*
parser.href = "http://example.com:3000/pathname/?search=test#hash";

parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port;     // => "3000"
parser.pathname; // => "/pathname/"
parser.search;   // => "?search=test"
parser.hash;     // => "#hash"
parser.host;     // => "example.com:3000"

( merci sebSauvage :x http://sebsauvage.net/links/?o5dk6Q)

javascript url dom parse
4756 links, including 1670 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn