Table of Contents

Interface ILocation

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

The Location interface represents the location of the object it is linked to. Changes done on it are reflected on the object it relates to.

[DomName("Location")]
public interface ILocation : IUrlUtilities
Inherited Members
Extension Methods

Methods

Assign(string)

Loads the resource at the URL provided in parameter.

[DomName("assign")]
void Assign(string url)

Parameters

url string

The path to the resource.

Reload()

Reloads the resource from the current URL.

[DomName("reload")]
void Reload()

Replace(string)

Replaces the current resource with the one at the provided URL. The difference from the 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.

[DomName("replace")]
void Replace(string url)

Parameters

url string

The path to the resource that should replace the current resource.