javascript assign() method
Translation results:
UK[əˈsaɪn] US[əˈsaɪn]
vt.Assign, select, allocate; vest, vest; [Law] transfer (property, rights, interest) from one person to another; Prepare...
n.[Commonly used plural][Legal] Transferee, the person who accepts the transfer of property, etc., trustee
Third person singular: assigns present participle: assigning past tense: assigned past participle: assigned
javascript assign() methodsyntax
Function: Load a new document.
Syntax: location.assign(URL)
javascript assign() methodexample
<html> <head> <meta charset="UTF-8"> <script type="text/javascript"> function newDoc() { window.location.assign("http://www.php.cn") } </script> </head> <body> <input type="button" value="Load new document" onclick="newDoc()" /> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance