JavaScript Reference/Javascript Methods/assign
"assign()" Example
<source lang="javascript">
<html> <body> <script language="JavaScript">
function function1() { location.assign("http://www.wbex.ru/"); }
</script> <input type="button" value="Load new page" onclick="function1();"> </body> </html>
</source>
"assign()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |location | +----------------+--------------------------------------------------------------+
</source>
"assign()" Syntax, Parameters and Note
<source lang="javascript">
Note: Load a new HTML document.
Syntax:
location.assign(param1)
Parameters:
param1 Required; the URL of the new document. </source>