assign()

This method performs the same action as the location.href statement. It is not advised you use this method.

syntax:

assign("URL")

This method is used with the following:

location