setAnchor(anchor)

Sets the URL’s anchor reference to the specified string.

public System.PageReference setAnchor(String anchor)

Type: System.PageReference