Location Interface
Location
object, which contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.
Methods
Code void reload() #
forceget
is a boolean, which, when it is true
, causes the page to always be reloaded from the server. If it is false
or not specified, the browser may reload the page from its cache.
void reload();
Code void replace(String url) #
assign()
method is that after using replace()
the current page will not be saved in session history, meaning the user won't be able to use the Back button to navigate to it.
void replace(String url);
Code String toString() #
Location
object's URL. See the JavaScript reference for details.
String toString();
Fields
Code String hash #
You can listen for the hashchange event to get notified of changes to the hash in supporting browsers.
String hash;
Code String search #
String search;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.