window.location.assign() method causes the window to load and display the document at the URL specified.
Note: If the assignment can't happen because of a security violation, a DOMException of the SECURITY_ERROR type is thrown.
|url||Required||Specifies the URL of the page to navigate to.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.