Location object

Posted on Updated on

Contains info about the URL

Part of the window object, also accessible by document object

Can access in dev tools by typing location

Items in location

  • search. : that is the query string 
  • pathname 
  • origin 
  • href 
  • port

See MDN for more
Examples: access seatch use window.location.search
See stevenbenner jQuery deparam for deconstruction of params  or go here 

Example deparam after loading function 

JQuery.deparam(window.location.search)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s