, : onMouseOut onUnload ( ). onMouseOver , , , . onMouseOut , . , onLoad , . onUnload , .
:
<A HREF="les10.htm" onMouseOver="window.status='! !';
return true"
onMouseOut="window.status='- , '; return true">
</A>
:
<BODY onUnload="alert(' ?')">
, , onMouseOver onMouseOut. , . , . , return true.
, onUnload="alert(' ?')" BODY. . . .
, (prompt). (: .) , . (alert) c :
, , , !
.
, " " alert, -. .
, onMouseOver onMouseOut.
- .
- , : , !.
- , : U RL ?
- , : ? ;
- .
- onClick, , onUnload
4
. , Javascript HTML . , .
<SCRIPT LANGUAGE="javascript">
window.open('opened.html', 'joe', config='height=300,width=300')
self.name="main window"
|
|
</SCRIPT>
. , . , , , . window.open
window () , a open () , .
:
(' URL ', ' ', config=' ')
:
('opened.html','joe',config='height=300,width=300')
- opened.html URL , . , http:// .
- joe . , . config= , .
, 300 300 .
, height () width () , , config. . config. . yes no , . ( 1 0 .) .
- toolbar= c , , ..
- menubar= , , ..
- scrollbars= .
- resizable= , .
- location= , URL .
- status= .
.
.
, . HTML Goodies . :
<A HREF="http://www.htmlgoodies.com" TARGET="main window"></A>
, main window (). . self.name="main window". HREF TARGET="--" () main window.
, joe target.
window.open . , . , target.
. :
<A HREF="" onClick="self.close">, </A>
HREF, . ? onClick="self.close" .
self (, ) . . close () .
|
|
, , . :
<A HREF="les11.htm" onClick="window.open('opened.html', 'joe',
config='height=300,width=300')">, 'joe'</A>