javascript½Å±¾×¢Èë
·¢ÏÖcsdnÄÜ·Àjavascript½Å±¾×¢È룬µ«²»Àí½âÔÀí£¬ÔÙÊÔÊÔ
<script language="javascript" type="text/javascript">
alert("hehe!");
</script>
´ó¼Ò¸øµã¿´·¨¡£
¿´¿´Õâ¸ö¹¥»÷ÊÔÊÔ£º
²½Ö裺
1 ¶ÔÍøÒ³µÄÔ´´úÂë·ÖÎö£¬·ÖÎö¸ÐÐËȤµÄ²¿·Ö£»
2 ´ò¿ª¸ÃÒ³Ã棬Çå¿Õurl£¬ÇÃÈëjavascript:#command#£¬»Ø³µ£»
3 »ñÈ¡ÄãÏëÒªµÄ¶«Î÷£¬²é¿´»òÐ޸ġ£
¾Ù¸öÀý×Ó£¬ÓÃÕâÖÖ·½·¨¾Í¿ÉÒÔÓÃÇáËɵÄÌø¹ýһЩÍøÕ¾µÄÑéÖ¤ÐÅÏ¢£¬¶ø½øÈëÄãÏë½øÈëµÄÒ³Ãæ¡££¨Ç°Ì᣺¸ÃÍøÕ¾½ö½öÓÃcookieÀ´ÑéÖ¤Óû§ÒѾµÇ½£©
HTML code:
·¢ÏÖcsdnÄÜ·Àjavascript½Å±¾×¢È룬µ«²»Àí½âÔÀí£¬ÔÙÊÔÊÔ <br /> <br /> <script language="javascript" type="text/javascript"> <br /> alert("hehe!"); <br /> </script> <br /> <br /> ´ó¼Ò¸øµã¿´·¨¡£
HtmlEncode?
µ« <br /> <br />ÕâЩÓв»»á±»±àÂ룿
²»»áÔÚ×Ö·û´®ÖÐרÃÅÕÒ <scritp>°É£¿
ÐÔÄÜËðºÄ´ó²»£¿
ÎÒ¾õµÃÄѵÃÔÚÓÚ£º
1. ½ö
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
Õâ¸ö±íµ¥µÄÊýÖµ²»Êǹ̶¨µÄ£¡µ±°´ÏÂÍ£Ö¹°´Å¥µÄʱºò×îÖÕµÄÊý×ֲŻáÍ£ÔÚÉÏÃ棡
ÎÒÏë°Ñ×îºóͣϵÄÊý×Ö´«ËÍ´«Ë͵½ÏÂÒ»¸öASPÒ³ÃæÉÏÈ¥£¡
²»ÏëʹÓÃlocation.href="mnn.asp?action="+ok1ÕâÑùµÄ·½Ê½´«Ë͹ýÈ¥
......
ÎÊÌâÃèÊöÈçÏ£º
ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
Î ......
JScript code:
<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......
ÕâÀïÓÃjavascript ·½·¨ÊµÏÖÁËTreeViewµÄcheckboxÑ¡ÖеÄЧ¹û£º
1£ºÑ¡Öи¸½ÚµãµÄʱºò£¬Æä×ӽڵ㽫×Ô¶¯Ñ¡ÖУ»
2£ºÈô¸¸½Úµã²»Ñ¡ÖУ¬Æä×Ó½ÚµãҲȫ²¿Ñ¡ÖУ»
2£ºÈôÆäÖÐÒ»¸ö×Ó½ÚµãuncheckµÄʱºò£¬Æ丸½ ......