Decoding a URL javascript can be done by the usage of its inbuilt function
decodeURI we need to decode the say when we have kept the encoded one and have to represent to client end
So to decode a URL we need to use this function,
the simple code goes as:
document.write(decodeURI('gr8%20puneet.aspx?pra=t%C3%A5l&pcar=great'));
the output will be
gr8 puneet.aspx?pra=tål&pcar=great