javascript - Break a URL into its components -


i'm using javascript , take url string have , break down components such host, path, , query arguments.

i need in order 1 of query arguments, url , encoded in original url string.

i feel there should easy way in javascript. perhaps looks this:

var what_i_want = url("http://www.domain.com?queryarg1=somequeryargument").getqueryargumentvalue("queryarg1"); 

the parseuri function need

edit alternatively can get dom hard work , access properties on newly created a object different parts of url.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -