a href=#Óë a href=javascript:void(0)µÄÇø±ð£¿
Ç°Ìì×öµÄÒ³ÃæÊÇÒ»¸öiframeµ¯³ö´°¿Ú£¨ËµÃ÷һϣºÍ¬ÊÂÓÃjs½Å±¾¿ª·¢³öÀ´µÄ£©Àï´¥·¢Ò»¸ö<a>Á´½ÓµÄ°´Å¥¿ÉÔڸô°¿ÚÉϵ¯³öÒ»¸ödivÐü¸¡²ã¡£µ«ÊÇÿ´Îµã»÷£¬divÐü¸¡²ã¾Í×Ô¶¯Î»ÓÚIE´°¿ÚµÄ¶¥¶Ë£¬ÏÂÃæµÄiframe´°¿Ú°üº¬µÄÒ³Ãæ»á×Ô¶¯ÉÏÒÆ£¬Î»ÖôíÂÒÁË¡£
ͬÊÂ˵Ö÷ÒªÊÇ<a href='#' onclick='clickʼþÃû()'></a>ÕâÀïµÄhref='#'µÄÔÒò£¬°ÑËü¸Ä³ÉÈý¸ö#¾ÍûÎÊÌâÁË£¬¼´ÐÞ¸ÄΪ<a href='###' onclick='clickʼþÃû()'></a>
ºÙ£¬»¹ÕæºÃÁË¡£ºóÀ´ÍøÉÏËÑÁËһϹÀ¼ÆÊÇ£º
££°üº¬ÁËÒ»¸öλÖÃÐÅÏ¢
ĬÈϵÄêµãÊÇ££top Ò²¾ÍÊÇÍøÒ³µÄÉ϶Ë
·½·¨Ò»£º ËùÒÔΪÁ˱ÜÃâÕâ¸öλÖÃÎÊÌâÓеÄÈËÌᳫ²ÉÓõķ½Ê½ÊÇjavascript:void(0) À´±íʾһ¸öËÀÁ´½Ó¡£
·½·¨¶þ£º µ«ÊÇÒ²ÓеÄÈ˲»Ìᳫ²ÉÓÃÕâÖÖ·½Ê½£¬¿´ÕâƪÎÄÕ£ºa href=”javascript:void(0);” — avoid the void´ó¸Å¾ÍÃ÷°×ɶ»ØÊÂÁË£¬^_^
<a href="#" onclick="doSomething();returnfalse;">Link</a>
»òÕß
<script type="javascript">
function doSomething() {
//doSomething
returnfalse;
}
</script>
<a href="#" onclick="return doSomething();">Link</a>
ÒÔÍù´ó¼Ò²»Ê¹ÓÃ"#"µÄÎÊÌâÊÇ£¬Õ⽫µ¼Öµã»÷Á´½ÓʱҳÃæÌø»ØÒ³Ã涥²¿£¬µ«Í¨¹ý return false Óï¾ä½«Ê¹µÃä¯ÀÀÆ÷ºöÂÔÁ´½ÓµÄĬÈ϶¯×÷£¬´Ó¶ø±ÜÃâÁË´ËÎÊÌâ¡£
ÎÒÏëΪºÎͬÊÂÒªÓÃÈý¸ö#£¬´ó¸ÅÒ²ÊÇÈ㣰üº¬µÄλÖÃÐÅϢʧȥЧ¹û£¬µ«ÎªºÎÓÃÈý¸ö¶ø²»ÊǶþ¸ö»òËĸöÖ®ÀàµÄ£¬¾Í²»Ì«Çå³þÁË¡£Ï´ÎÓпÕÔÙ²âһϡ£¡£¡£ÖªµÀ´ð°¸µÄÅóÓѾ͸ø¸öÆÀÂÛÀï°É¡£ÏȵÀÉù£ºÐ»Ð»ÁË
Ïà¹ØÎĵµ£º
/*
* To change this template, choose Tools | Templates
* and open the template in the editor
*/
var File = {
name:'',
path:'',
ext:'',
cfiles:[],
attributes:{
  ......
¹Ø¼ü×Ö vbscript,javascript,µ÷ÓÃ
vbscriptºÍjavascript»¥Ïàµ÷Ó÷½·¨
¡¡¡¡ASP¾ß±¸¹ÜÀí²»Í¬ÓïÑԽű¾³ÌÐòµÄÄÜÁ¦£¬Äܹ»×Ô¶¯µ÷ÓúÏÊʵĽű¾ÒýÇæÒÔ½âÊͽű¾´úÂëºÍÖ´ÐÐÄÚÖú¯Êý¡£ASP¿ª·¢»·¾³ÌṩÁËÁ½Öֽű¾ÒýÇ棬¼´VBScript£¨È±Ê¡£©ºÍJScript¡£²»¹ý£¬¿ª·¢Õß² ......
<SCRIPT LANGUAGE="JavaScript">
<!--
function limitNum(obj) {
if(obj.value.replace(/\s/g,"")==""||obj.value.replace(/\s/g,"")=="ÊäÈë¹Ø¼ü×Ö") {
alert('ÇëÊäÈë¹Ø¼ü×Ö')
return false;
}
}
//-->
</SCRIPT>
< ......
Ô´´ÓÚ2007Äê12ÔÂ16ÈÕ£¬2009Äê10ÔÂ15ÈÕǨÒÆÖÁ´Ë¡£
°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image( ......
replace()×î¼òµ¥µÄËãÊÇÄÜÁ¦¾ÍÊǼòµ¥µÄ×Ö·ûÌæ»»¡£
ʾÀý´úÂëÈçÏ£º
<script language="javascript">
var strM = "javascript is a good script language";
//ÔÚ´ËÎÒÏ뽫×ÖĸaÌæ»»³É×ÖĸA
alert(strM.replace("a","A"));
</script>
ËüÖ»Ìæ»»ÁËÊ××Öĸ¡£µ«Èç ......