½«aspxÒ³Ãæ×ª»»ÎªhtmlÒ³Ãæ
StringBuilder sb = new StringBuilder();
Server.Execute("~/Default2.aspx", new StringWriter(sb));
File.WriteAllText(Server.MapPath("index.htm"), sb.ToString());
Ïà¹ØÎĵµ£º
´°¿Úʼþ (Window Events)
½öÔÚ body ºÍ frameset ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onload ½Å±¾ µ±ÎĵµÔØÈëʱִÐнű¾
onunload ½Å±¾ µ±ÎĵµÐ¶ÔØÊ±Ö´Ðнű¾
±íµ¥ÔªËØÊ¼þ (Form Element Events)
½öÔÚ±íµ¥ÔªËØÖÐÓÐЧ¡£
ÊôÐÔ Öµ ÃèÊö
onpropertychange ½Å±¾ µ±Îı¾ÄÚÈݸıäʱִÐнű¾
onchange ½Å± ......
ÀýÈç´Ó1.htmlÌø×ªµ½2.html£º
ÔÚ1.htmlÖУº
¡¡¡¡<form name="loginForm" action="2.htm?pageid=1&str='s'" method="post">
µ±Ò³ÃæÌá½»Ìø×ªµ½2.htmlÖУº
<script type="text/javascript">
<!--
var str = location.search;
//-->
&l ......
HTMLÔªËØ¼°¿Ø¼þʼþÒ»ÀÀ±í
Ò»°ãʼþ
ʼþ
ä¯ÀÀÆ÷Ö§³Ö
ÃèÊö
onClick
HTML: 2 | 3 | 3.2 | 4
Browser: IE3 | N2 | O3
Êó±êµã»÷ʼþ£¬¶àÓÃÔÚij¸ö¶ÔÏó¿ØÖƵķ¶Î§ÄÚµÄÊó±êµã»÷
onDblClick
HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 | O
Êó±êË«»÷ʼþ
onMouseDown
HTML: 2 | 3 | 3.2 | 4
Browser: IE4 | N4 ......
ǰ̨ <form id="form1" runat="server" enctype="multipart/form-data">
<input type="flie" id="xxx">
</form>
ºǫ́ͨ¹ý HttpPostedFile f = Request.Files["xxx"]
½ÓÊվͿÉÒÔÁË ......
ÓÐÊ±Ò³ÃæÐèÒª»ñµÃÓû§ä¯ÀÀÆ÷µÄ¸ß¶È²ÅÄÜÈ·¶¨ÄÚÈÝÏÔʾÔÚÄÄÀ´úÂë
<div style="position:absolute; left:0; top:expression(document.body.clientHeight/2-document.body.clientHeight/4)">
</div>
ÖУ¬expression(document.body.clientHeight/2)¼´Îª»ñµÃä¯ÀÀÆ÷¸ß¶ÈÔÙ³ýÒÔ2 ......