3 ms·
Good job. JavaScript has needed something like this for a while. I'm still kind of confused as to why they don't have good native support for URL parsing.
by languagehacker 14y ago
Good job. JavaScript has needed something like this for a while. I'm still kind of confused as to why they don't have good native support for URL parsing.
- DrJokepu 14y agoYou might find this useful: https://developer.mozilla.org/en-US/docs/DOM/window.location#Location_object https://developer.mozilla.org/en-US/docs/DOM/window.location...
- taf2 14y agoto quote my favorite seen from the lion king reference: "http://www.imdb.com/character/ch0000591/quotes http://www.imdb.com/character/ch0000591/quotes "look harder". You can parse URL's in JavaScript using window.location or anchor.href, both provide solutions for parsing URL's... someone else from this thread referenced: http://stackoverflow.com/questions/6168260/how-to-parse-a-url/6168370#6168370 http://stackoverflow.com/questions/6168260/how-to-parse-a-ur... (above i believe)...
- Almaviva 14y ago.. and I still have to roll my own library or inline code for parsing apart GET params. No thanks.