ÓÃjavascriptʵÏÖ×Óҳˢи¸Ò³µÄ¿Ø¼þ
1 Add the following code to .aspx
<script>
function fresh() {
{
window.opener.document.getElementById("ControlId").click(); //ControlId -- meaning parent control
}
<script>
2.Add the following code to .cs,if you want to refresh master page control.
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "fresh(');", true);
Ïà¹ØÎĵµ£º
<mce:script language="javascript" type="text/javascript"><!--
//ÐèÒª¶ÁÈ¡µÄxmlÎļþ
var uRl = "jsReadXml.xml";
var xmlDoc;
//³õʼ»¯£¬¸øÉÏÊö¶¨Òå±äÁ¿¸³Öµ
// function showcurcity(){
if(window.ActiveXObject)
{
xmlDoc=new ActiveXObject("Microsoft.XMLDOM&q ......
JavaScript
ת×Ô£º http://www.disandu.com/?p=603
============================================================================
1 ´¦ÀíXSLT µ÷Óôø²ÎÊýµÄXSLTÄ£°åµÄ·½·¨ Ïê¼û 23Ìõ
<html>
<body>
  ......
·½·¨Ò»£ºÊ¹ÓÃFileUpLoad ¿Ø¼þ¶à¸öÖ±½ÓÉÏ´«¡£ÕâÑù×öµÄÎÊÌâ¾ÍÊÇÒªÇóÒ³ÃæÌá½»£¬´Ó¶øµ¼ÖÂһЩ²»Ó¦¸ÃˢеÄÄÚÈÝÔڴ˲Ù×÷¹ý³ÌÖÐÏûʧµô¡£µ«ÊÇÓÃScriptManger À´Åª È´ÓÖ²»ÄÜÉÏ´«ÁË ÔÒòºÜ¼òµ¥ FileUpLoad ¿Ø¼þÒªÇópost¡£ÓÉÓÚÕâ¸öÎÊÌâ ËùÒÔ¶àÊýÈ˶¼ºÜÉÙ²ÉÓÃÕâÖÖ·½·¨£¬²»µÃ²»ÁíѰËü·¨¡£ÏÂÃæµÄ·½·¨¶þ½â¾ö´ËÎÊÌâ¡£
·½·¨¶þ£ºÊ¹ÓÃHtml±êÇ ......
1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"></textarea&g ......
Javascriptº¯Êý°üº¬Ò»¸öαÊý×飨pseudo-array£©£¬¸ÃÊý×é°üº¬ËùÓд«Èë²ÎÊý£¬ÎÒÃDz»ÄÜÐÞ¸ÄËü£¬µ«¿ÉÒÔ·ÃÎÊÆäÖеijÉÔ±£¬¸ÃÊý×éÒ²¾ßÓÐlengthÊôÐÔ¡£
º¯ÊýÖØÔØÒÀÀµÓÚÅжϴ«Èë²ÎÊý¸öÊýºÍÀàÐ͵ÄÄÜÁ¦¡£
º¯ÊýÖØÔØµÄÀý×Ó£º
<html>
<head>
<mce:script type="text/javascript"><!--
function sendMessage(msg ......