MURL

Methods



protocol():String


As expected protocol returns a string representation of the protcol being used.

subdomain():String


The subdomain function return a string of the subdomain of the page being requested. If no subdomain is preset it will return an empty string.

domain():String


The domain function returns the domain of the site plus the top level domain.

canonical():String


The canonical function returns the root location of the web site.

current():String


The current function returns the current url being viewed.

segment(segment:int):String


The segment function returns parts of the URL devided along forward slashes. Just like arrays they are 0 based with the cannonical representing segment 0. However unlike arrays 0 is not a valid index.

Any segment requested but not in existence will return an empty string.

reset():void


The reset function reloads the current page first asking the user if they want to reload the page.