JavaScript Çë½Ì
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(),this.ClientID, " <script language=\"javascript\" type=\"text/javascript\"> if(confirm('ÐèÒªÖ±½ÓÌá½»Âð?')) {......} else{....} </script>" , false);
ÏÖÓÐÒ»¸ölable
µ±ÉÏÃæÓï¾äÖÐif³ÉÁ¢Ê±,ÏëÈÃlableµÄtextµÈÓÚ0
.....ºÅ²¿·ÖÔõôд?
JScript code:
document.getElementById("LableµÄID").innerText = "0";
ÒòΪ·þÎñÆ÷¿Ø¼þLable½âÎö³Éhtml´úÂ룬ÊÇ <span id="label_Id">labelµÄÖµ </span>
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), this.ClientID, " <script language=\"javascript\" type=\"text/javascript\"> if(confirm('ÐèÒªÖ±½ÓÌá½»Âð?')) {document.getElementById("btn_hide").innerText = "0";} else{document.getElementById("btn_hide").innerText = "0";} </script>", false);
ÌáʾÎÒÉÙ)ºÍ;
ÎÒ²»ÖªµÀÄÄÉÙÁË
"btn_hide"
¸Ä³É
\"btn_hide\"
Ïà¹ØÎÊ´ð£º
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="tab._Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD ......
javascript »òÕß Jsp ÈçºÎʵÏÖµ¯³ö±£´æÎļþ¶Ô»°¿òÄØ£¿ ÎÒÊÇ´òË㽫JspÒ³Ãæ»òµÃµ½µÄ²ÎÊý±£´æµ½±¾µØ¡£±ÈÈç˵£¬·þÎñÆ÷¶Ë·µ»ØÁËÒ»¸öxmlÎļþ£¬ÎÒÏë°ÑËüµÄÄÚÈݱ£´æÏÂÀ´£¬µ«Õâ²»ÊÇÏÂÔØ£¬¶øÊÇʹÓÃä¯ÀÀÆ÷ÔÚ±¾µØ´´½¨Ò»¸öÎļþ£¬½ ......
hookkeeeÀÏʦ£¬javascriptÈçºÎ¿ØÖÆxml
ÈçºÎ¶ÁÈ¡cookies
hookkeeÔÚweb°æ
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
xmlDoc.async = false;
xmlDoc.load("test"&q ......
ÎÒÐèҪдһ¶Î´úÂëÀ´¶ÁȡijÎļþ¼ÐϵÄÎļþ£¬Ö»ÐèÒª¶ÁÈ¡µ½Îļþ¼ÐÏÂËùÓÐÎļþÃû¾ÍºÃÁË£¡£¡£¡
Çó´úÂëÏÈ£¡£¡ÎÒ¶¼²»»á£¬ËùÒÔÒª´úÂëÁË¡£
¿Í»§¶ËµÄÎļþ£¬²»ÄÜÕâô×ö¡£
ÈçÃÏ×ÓËù˵£¬ÔÚ¿Í»§¶ËµÄJavaScriptÖÐÔËÐÐÎļþ ......
¶¨ÒåÒÔÏÂJavascript·½·¨
JScript code:
function onSubmit(actType)
{
form.type.value = actType;
}
ÓÐÒÔÏ°´Å¥£¬µ÷ÓøÃJavaScript·½·¨
HTML code:
<html: button oncli ......