Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is possible to create instance of Location?

Tags:

When I type window in console. console show that window is instance of Window. Is it possible to create new window object using new Window(). I tried it but it throwing error TypeError: Illegal constructor

My Question is related to Location object. can I create a new object using Location? I need it so that I can apply method available on location object to my links.

I was trying to access Location object but no success.

I am using Chrome console.