开发者

All Javascript Commands for URL's [closed]

开发者 https://www.devze.com 2023-01-19 22:26 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetor开发者_开发百科ical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetor开发者_开发百科ical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 12 years ago.

So I want a list of all javascript commands what can manipulate or get information about URL's.

Example:

window.location.href


To list the properties of an object you can use this method:

var p = [];

for (var i in window.location)
{
    p.push(i);
}

alert(p.join("\n"));

For window.location I get:

  • href
  • protocol
  • search
  • hash
  • pathname
  • hostname
  • host
  • port
  • reload
  • replace
  • assign


W3C
W3 Schools
Mozilla


Your question is not really clear. However, I suggest that you have a look one the Javascript reference from Mozilla. The response to your question is here, no doubt about that!


https://developer.mozilla.org/en/DOM/window.location

0

精彩评论

暂无评论...
验证码 换一张
取 消