½â¾öFirefox ÏÂF5ºÍIEÏÂF5 ²»Ò»ÖµÄjavascript ½Å±¾.
½â¾öFirefox ÏÂF5ºÍIEÏÂF5 ²»Ò»ÖµÄjavascript ½Å±¾.
var check=function(e)
{
e=e||window.event;
//alert(e.which||e.keyCode);
if((e.which||e.keyCode)==116)
{
if(e.preventDefault)
{ e.preventDefault();}
else
{
event.keyCode = 0;
e.returnValue=false;
}
window.location.href = this.location.href;
}
}
if(document.addEventListener){
document.addEventListener("keydown",check,false);
}
else{
document.attachEvent("onkeydown",check);
}
Ïà¹ØÎĵµ£º
ÈýÖÖ²»Í¬Î»ÖõÄJavaScript´úÂëµÄд·¨
¿Í»§¶Ë½Å±¾JavaScriptÔÚд·¨ÉÏÆäʵÓкܶàÖÖ·½·¨£¬ËüÃǵķÅÖÃλÖÃÒ²·Ç³£Ö®¶à¡£¡£ ÏÂÃæÁоÙÔÚÈýÖÖ²»Í¬µÄµØ·½Ð´JavaScript´úÂ룬ʵÏÖµÄЧ¹û¶¼Êǵã»÷°´Å¥buttonµ¯³öalert¾¯¸æ¿ò
µÚÒ»ÖÖÊÇ×î³£¼ûµÄ£¬´úÂëÈçÏ html´úÂë
<input type="button" value="°´Å¥1" id=" ......
jsÊÇÈõÀàÐ굀 µ«ÊÇijЩʱºò Ä㻹ÕæÐèÒªÒ»¸ödate
±ÈÈç˵ Ö¸¶¨Ê±¼ä ÄÇô3¸öСʱºóÊÇʲôʱ¼ä
ÕâÑùµÄº¯Êý ×Ô¼ºÐ´¾ÍÂé·³ÁË
ת³ÉDate
var hs = Date.parse('03/02/2009 22:10');
var d = new Date(hs);
document.write(d);
document.write('<br/>');
var h=3.5;
var arrh= ......
ÔÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2-showModalDialog
ǰһƪÎÄÕÂJavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµÖн²µ½ÁËÈçºÎÀûÓÃwindow.open()·½·¨´ò¿ªÐ´°Ì壬²¢ÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµµÄ·½·¨¡£javascriptÖл¹ÓÐÒ»¸öº¯Êýwindow.showModalDialogÒ²¿ÉÒÔ´ò¿ªÒ»¸öд°Ì壬²»¹ýËû´ò¿ªµÄÊÇÒ»¸öģ̬´°¿Ú£¬ÄÇôÈçºÎÔÚ¸¸´°Ì ......
1.Text µ¥Ðе¥ÁÐÊäÈëÔªËØ
¹¦ÄÜ£º¶ÔText±êʶÖеÄÔªËØʵʩÓÐЧµÄ¿ØÖÆ
»ù±¾ÊôÐÔ£º
Name£ºÉ趨Ìá½»ÐÅÏ ......