mirror of
https://github.com/lubosz/overte.git
synced 2025-04-07 04:23:02 +02:00
11 lines
584 B
JavaScript
11 lines
584 B
JavaScript
var goto = Window.prompt("Where would you like to go? (ex. @username, #location, 1.0,500.3,100.2)");
|
|
var url = "hifi://" + goto;
|
|
print("Going to: " + url);
|
|
location = url;
|
|
|
|
// If the destination location is a user or named location the new location may not be set by the time execution reaches here
|
|
// because it requires an asynchronous lookup. Coordinate changes should be be reflected immediately, though. (ex: hifi://0,0,0)
|
|
print("URL: " + location.href);
|
|
print("Protocol: " + location.protocol);
|
|
print("Hostname: " + location.hostname);
|
|
print("Pathname: " + location.pathname);
|