JavaScript Reference/Javascript Properties/returnValue — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
"returnValue" Example
<html>
<body>
<script language="JavaScript">
function function1() {
event.returnValue = false;
}
</script>
<a id="function1"
href="http://www.wbex.ru"
target="_blank"
onClick="function1();">wbex.ru Home page</a>
"returnValue" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |event window |
+----------------+--------------------------------------------------------------+
"returnValue" Syntax and Note
Note:
Read and write property.
It sets the return value of the event (if false, the action is canceled).
For the window object, it specifies the value of a modal dialog window.
Syntax:
window.event.returnValue = value
window.returnValue = value