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 need classified ad platform, We need Classified ad platform We need t...

We need Classified ad platform We need to build a free classified ad platform. On that people capable to post for free. Design- Fully compatible with all major browsers Me

Explain features of php, Question: (a) (i) Name four features of PHP t...

Question: (a) (i) Name four features of PHP that makes it an appropriate choice as a Web programming language. (ii) List advantages while using PHP scripting language.

Authenticate the name and password, Keep a list of allowed reporters and th...

Keep a list of allowed reporters and their passwords in a database table Authentication .  Define and populate the table beforehand manually using the phpMyAdmin interface to MySQ

I need help in create static html pages, Create Static HTML Pages We are...

Create Static HTML Pages We are a travel search engine provider placed in Germany. We are probing for a developer who can create a bunch of static HTML pages for connections amo

Need help in rails application ui development, Need help in Rails Applicati...

Need help in Rails Application UI Development I have an application that I have developed about 80% of. I need somebody to complete the job Component 1- Create a fresh UI to

World wide web, The World Wide Web is defined as a "wide area hypermedia in...

The World Wide Web is defined as a "wide area hypermedia information initiative amongst to provide universal access to big universe of documents". World Wide Web gives users on com

Prompt boxes, The prompt box lets the user to enter information. The advant...

The prompt box lets the user to enter information. The advantage of using a prompt are fairly restricted and the use of forms would frequently be preferred (from a user perspective

Need help in referral program magento enterprise extension, Referral Progra...

Referral Program Magento Enterprise Extension We're seeking someone to develop a referral extension for our online jewelry store Required functionality: a) Members will ap

I want a wordpress specialist, Wordpress specialist 1) Wordpress install...

Wordpress specialist 1) Wordpress install and needed plugins 2) Wordpress theme 3) Wordpress crowd funding plugin or custom made (please specify) 4) Custom details 5

Need web developer/programmer for unique lead gen website, Seeking Web Deve...

Seeking Web Developer/Programmer for unique lead gen website a) Potential customers come to website and post services they need b) Providers make offers to post c) Both cu

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