Location object, PHP Web Programming

Assignment Help:

This is part of a Window object & it is accessed by the window. location property. It has the complete URL of any given Window object, or, if none is denoted, of current Window object. Syntax: All its properties are strings representing distinct portions of the URL, generally which takes the given form:

<protocol>//<host>[:<port>]/<pathname>[<hash>][<search>]

You can build a Location object through simply assigning a URL to the location property of an object:

Property

Description

Hash

The hash property is a string starting with a hash (#), which specifies an anchor name in an HTTP URL

Host

The host property is a string including the hostname & port strings.

hostname

The hostname property denote the server name, subdomain & domain name (or IP address) of a URL.

Href

The href property is a string defining the entire URL, and of which all other link properties are substrings.

pathname

The pathname property is a string portion of a URL defining how a specific resource can be accessed.

Port

The port property is a string defining the communications port that the server uses.

protocol

The protocol property is the string at the beginning of a URL, up to and

 Including the first colon (:), that specifies the method of access to the URL.

Syntax:              window.location = "file:///C:/Projects"


Related Discussions:- Location object

We are seeking for a talented web developer, We are seeking for a talented ...

We are seeking for a talented web developer We are in search of some people with the following skills Meteor / Node JS MongoDB Twitter Bootstrap JQuery CSS Mus

I am seeking someone that will build a very similar website, Rap Genius Clo...

Rap Genius Clone I am seeking someone that will build a very similar website as (though the content will be very different). The functionality will pretty much be the similar (u

Need help in drupal commerce payments and checkout solutions, Drupal commer...

Drupal commerce payments/checkout solutions A current Drupal commerce website using PayPal as the payment method. Want to combine check out by amazon and sagepay which signifies

Need help in new business start up, New Business Start up I' have a lump...

New Business Start up I' have a lumpy design on how the website must look like (mobile website). What I am seeking is a website developer who can guide me from A to Z The dev

Port a psd web site to a complete worpress, Web site Port a PSD Web site...

Web site Port a PSD Web site to a complete Worpress, multilanguage web site. Wants to document how to create new pages Desired Skills MySQL Administration, HTML and PHP

We are in need of php and laravel expert, We are in need of PHP and Laravel...

We are in need of PHP and Laravel expert I want a developer to work for me on a custom project built on the laravel framework. I need various bug fixes and new functions writ

Explain how syntax errors occur in php, Question: (a) With the help of...

Question: (a) With the help of a diagram, illustrate how Three-Tier Web application architecture operates. (b) Explain how syntax errors occur in PHP. (c) Exceptions ar

WEB, 2346 3245654

2346 3245654

Create an html document and java applets, For this project, you are requir...

For this project, you are required to design and create an HTML document (also referred to as a "Web page"), in which certain basic HTML elements are incorporated. Your HTML docume

Want someone who can create wordpress plugin, Wordpress plugin Want some...

Wordpress plugin Want someone who can create (or modify existing) WP plugin to act like Desired Skills are PHP, WordPress

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd