javascript ¹ýÂË textbox
<asp:TextBox ID="TextBox1" runat="server" onkeydown="return NotAllowSpace(this);"/></asp:TextBox>
<mce:script type="text/javascript" language="javascript"><!--
function NotAllowSpace(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode;
if (window.event) keyVal = window.event.keyCode;
if((window.event.shiftKey))
{
if((keyVal ≶ 48 && keyVal < 57))
{ return false; }
else if((keyVal ≶ 96 && keyVal < 105))
{ return false; }
else if((keyVal == 46))
{ return false; }
else if((keyVal == 8))
{ return false; }
else
{ return false }
}
else
{
if((keyVal ≶ 48 && keyVal < 57))
{ return true; }
else if((keyVal ≶ 96 && keyVal < 105))
{return true; }
else if((keyVal == 46))
{ return true; }
else if((keyVal == 8))
{ return true; }
else if((keyVal == 57))
{return true; }
else if((keyVal == 48))
{ return true; }
else if((keyVal ≶ 65 && keyVal < 90))
{return true; }
else if(keyVal==65)
{return true; }
else if(keyVal==90) {return true;}
else if((keyVal == 16))
{ return false; }
else
{ return false; }
}
}
// --></mce:script>
Ïà¹ØÎĵµ£º
FRAMESET ±êÇ©ÊÇ FRAME ÔªËصÄÈÝÆ÷¡£
HTML Îĵµ¿É°üº¬ FRAMESET ÔªËØ»ò BODY ÔªËØÖ®Ò»£¬Á½Õß²»ÄÜͬʱʹÓá£
¿ò¼Ü½«ÍøÒ³·Ö³É¼¸¸ö¿ò´°£¬Í¬Ê±È¡µÃ¶à¸öURL¡£ÓÃ<FRAMESET> <FRAME> ¼´¿É£¬ËùÓпò¼Ü±ê¼ÇÐèÒª·ÅÔÚÒ»¸ö×ÜÆðµÄ html ÎĵµÀÕâ¸öµµ°¸Ö»¼Ç¼Á˸ÿò¼ÜÈçºÎ·Ö¸î £¬²»»áÏÔʾÈκÎ×ÊÁÏ£¬ËùÒÔ²»±Ø·ÅÈë <BODY& ......
1.document.formName.item("itemName") ÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»òdocument.formName.elements["elementName"];FirefoxÏÂ,Ö»ÄÜʹÓÃdocument.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elementName"].
2.¼¯ºÏÀà¶ÔÏóÎÊÌâ
˵Ã÷:IEÏÂ,¿É ......
×î½üÔÚÍøÉϲéÔÄÁ˲»ÉÙJavascript±Õ°ü(closure)Ïà¹ØµÄ×ÊÁÏ£¬Ð´µÄ´ó¶àÊǷdz£µÄѧÊõºÍרҵ¡£¶ÔÓÚ³õѧÕßÀ´Ëµ±ð˵Àí½â±Õ°üÁË£¬¾ÍÁ¬ÎÄ×ÖÐðÊö¶¼ºÜÄÑ¿´¶®¡£×«Ð´´ËÎĵÄÄ¿µÄ¾ÍÊÇÓÃ×îͨË×µÄÎÄ×Ö½Ò¿ªJavascript±Õ°üµÄÕæʵÃæÄ¿¡£
¡¡¡¡Ò»¡¢Ê²Ã´ÊDZհü£¿
¡¡¡¡“¹Ù·½”µÄ½âÊÍÊÇ£ºËùν“±Õ°ü”£¬Ö¸µÄÊÇÒ»¸öÓµÓÐÐ ......
function MyObject1(formalParameter){
alert("MyObject1");
this.testNumber = formalParameter;
//1
this.toString= function(){
alert("MyObject1:"+this.testNumber);
&nbs ......
JavaScript ÊǸù¾Ý "ECMAScript"±ê×¼Öƶ¨µÄÍøÒ³½Å±¾ÓïÑÔ¡£Õâ¸ö±ê×¼ÓÉ ECMA ×éÖ¯·¢Õ¹ºÍά»¤¡£ECMA-262
ÊÇÕýʽµÄ JavaScript ±ê×¼¡£Õâ¸ö±ê×¼»ùÓÚ JavaScript (Netscape) ºÍ JScript
(Microsoft)¡£Netscape (Navigator 2.0) µÄ Brendan Eich ·¢Ã÷ÁËÕâÃÅÓïÑÔ£¬´Ó 1996
Ä꿪ʼ£¬ÒѾ³öÏÖÔÚËùÓÐµÄ Netscape ºÍ Micro ......