JavaScript Reference/Javascript Methods/assign — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"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>