Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScriptÖÐconfirmµÄÓ÷¨

confirmº¯Êý 
confirmº¯ÊýÓÃÓÚÌṩȷÈϹ¦ÄÜ£¬ËüÊ×ÏÈÏÔʾ¸ø¶¨µÄmessage²ÎÊýËù°üº¬µÄÐÅÏ¢£¬²¢ÌṩÁ½¸ö¿ÉÑ¡ÔñµÄ»Ø´ð“ok”ºÍ“cancel”£¬È»ºóµÈ´ýÓû§Ñ¡ÔñÆäÖеÄÒ»¸ö¡£Èç¹ûÓû§Ñ¡Ôñ“ok”Ôò·µ»Øtrue£»·ñÔò£¬ÈçÈôÑ¡Ôñ“cancel”Ôò·µ»Øfalse¡£¸Ãº¯ÊýµÄÓï·¨¸ñʽÈçÏ£º
window.confirm (message, ok, cancel)
ËüÓÐ3¸ö²ÎÊý£¬ÆäÖвÎÊýmessageÊÇÓûÏÔʾµÄ×Ö·û´®ÐÎʽµÄÌáʾÐÅÏ¢£»²ÎÊýokÒ²ÊÇÓÃÓÚÏÔʾµÄÒ»¸ö×Ö·û´®ÐÅÏ¢£¬Ëü¿ÉÒÔÊÇ“OK”£¬Ò²¿ÉÒÔÊÇÆäËû±íʾOKÒâÒåµÄÎı¾ÐÅÏ¢£¬Èç“I Agree”¡¢“I Like”µÈµÈ£»Í¬Ñù£¬²ÎÊýcancelÒ²ÊÇÓÃÓÚÏÔʾµÄ×Ö·û´®ÐÅÏ¢£¬¿ÉÒÔÊÇ“Cancel”Îı¾£¬Ò²¿ÉÒÔÊÇÆäËû±íʾCancelÒâÒåµÄÎı¾ÐÅÏ¢¡£
<script>
var bln = window.confirm("È·¶¨Âð?");
alert(bln)
</script>
»ò
Button.Attributes.Add("onclick", "javascript:if(!confirm('ÄãÈ·¶¨ÒªÉ¾³ý¸Ãϵͳ×ÉѯÂð£¿')) { return false; }")
Button.Attributes.Add("onclick","javascript:return confirm('ÇëÔڵǽºóÔËÐУ¬ÊÇ·ñÏÖÔÚÖØеǽ£¿')")
ÀýÈ磺<a onclick="javascript:if(!confirm('È·¶¨ÒªÉ¾³ýÑ¡ÔñµÄÐÅÏ¢Âð£¿\n´Ë²Ù×÷²»¿ÉÒÔ»Ö¸´£¡')) { return false; }" href="delhtml.asp?adid=<%=rs("adid")%>&type_oneid=<%=rs("type_oneid")%>"><font color="green">ɾ³ý</font></a>
Àý×Ó£º
ÒÔÏ·ÅÔÚ<head></head>ÖÐ
<script> 
function rusure()
{  
question = confirm("ȷʵҪȥ½øÈëÂð?")  
if (question !="0")
{
window.open("","²âÊÔ¹«¸æ´°¿Ú","width=340,height=163,toolbar=0,status=0,menubar=0,resize=0");


</script>
ÒÔÏ·ÅÔÚ<body></body>ÖÐ
<a href="" onClick="rusure() ;return false;">À´µã»÷ÎÒ</a>
ÓÃconfirmÈ·ÈÏÌá½»¶¯×÷£¬ÌύȷÈÏÌáʾ
ÀýÈçÔÚÁôÑÔ²¾µã»÷ÖØдʱ£¬ÓÐʱºòÎÒÃÇÏ£Íû»áÓÐÒ»¸öÌáʾ£¬ÒÔÃâʧÎó²Ù×÷¡£´úÂëÈçÏ£º
¡¡¡¡
·½·¨Ò»
<input name="Submit" type="submit" onClick="if(confirm('ÊÇ·ñ´ò¿ªÍøÒ³£¿')) location='http://www.05376.com'" value="´ò¿ª">
¡¡¡¡·½·¨¶þ
<input name="Reset" type="reset" onClick="return clearbutton()" value="ÖØд">
<script type="text/javascript">


Ïà¹ØÎĵµ£º

Javascriptº¯ÊýÀàÐÍÅжÏÍêÃÀ½â¾ö·½°¸


Javascriptº¯ÊýÀàÐÍÅжÏÍêÃÀ½â¾ö·½°¸
ÔÚÅжϺ¯ÊýÀàÐÍʱ£¬ÎÒÃÇͨ³£Ê¹ÓÃtypeof·½·¨£¬Ò»°ãÇé¿öÏ£¬Ëü»áµÃµ½ÎÒÃÇËùÔ¤ÏëµÄЧ¹û¡£µ«ÊÇ£¬ÓÐһЩϸ½Ú²¢²»ÎªÎÒÃÇËùÊìÖª¡£John Resig ÔÚ·ÖÎöÁËÕâЩϸ½ÚÖ®ºó£¬ÎªÎÒÃÇÌṩÁËÒ»¸öÍêÃÀµÄ½â¾ö·½°¸£¬±¾ÎĽ«×÷Ïêϸ½éÉÜ£º
Ò»¡¢´«Í³·½·¨²»ÎªÈËËùÖªµÄϸ½Ú
ºÁÎÞÒÉÎÊ£¬ÔÚÅжϺ¯ÊýÀàÐÍʱ£¬ÎÒÃÇÊ ......

ÉîÈëÀí½âJavaScript±Õ°ü

±¾ÎÄת×Ô£ºhttp://www.felixwoo.com/archives/247
×î½üÔÚÍøÉϲéÔÄÁ˲»ÉÙJavascript±Õ°ü(closure)Ïà¹ØµÄ×ÊÁÏ£¬Ð´µÄ´ó¶àÊǷdz£µÄѧÊõºÍרҵ¡£¶ÔÓÚ³õѧÕßÀ´Ëµ±ð˵Àí½â±Õ°üÁË£¬¾ÍÁ¬ÎÄ×ÖÐðÊö¶¼ºÜÄÑ¿´¶®¡£×«Ð´´ËÎĵÄÄ¿µÄ¾ÍÊÇÓÃ×îͨË×µÄÎÄ×Ö½Ò¿ªJavascript±Õ°üµÄÕæʵÃæÄ¿¡£
Ò»¡¢Ê²Ã´ÊDZհü£¿
“¹Ù·½”µÄ½âÊÍÊÇ£º±Õ°üÊ ......

Javascript¹Ø±Õµ±Ç°´°¿Ú

Javascript¹Ø±Õµ±Ç°´°¿Ú2007-09-03 11:11Õâ¸öÌ«¼òµ¥ÁË£¬window.close()¾Í¿ÉÒÔÁË£» ²»¹ýËü»á³ö¸öÌáʾ“Äú²é¿´µÄÍøÒ³ÕýÔÚÊÔͼ¹Ø±Õ´°¿Ú¡£ÊÇ·ñ¹Ø±Õ´°¿Ú£¿”£¬Äܲ»Äܲ»³öÕâ¸öÌáʾ£¿NÄêÇ°¾ÍÓÐÈËÎʹýÎÒ£¬ÄÇʱºòÎÒ»¹ÊDzËÄñ£¬²»¹ýÎҵĻشð»¹Ëã“רҵ”¡£ºÇºÇ£» “Èç¹ûÄãµÚÒ»´Î´ò¿ªÕâ¸öÍøÒ³£¬window.close() ......

javascript , ajax

ÎÊ:
Hi,
I have this C#/ASP.NET/.aspx page with a string variable named myString with the value "Mario Gamito".
How can I access "Mario Gamito" from within a JavaScript function, i. e., the variable's value ?
Already tried '" + mystring + "' but it doesn't works.
Any help would be appreciated.
......

javascript ʵÏÖ·ÖÒ³Ìõ

function Paging(pageNum,pageSize,totalCount,skipCount,fuctionName,currentStyleName,currentUseLink,preText,nextText,firstText,lastText)
{
//debugger;
    var returnValue = "";
    var begin = 1;
    var end = 1;
    var total ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ