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.
Attempting to use
Locationto manipulate arbitrary URIs will not work as desired. TheLocationobject/type is not a general URI container, but is rather a special contract with the DOM and its navigation state.I found this URI JavaScript type by webr3 via google, YMMV: