javascriptС¼¼ÇÉ
IE7²»¾Ìáʾ¹Ø±Õä¯ÀÀÆ÷´°¿Ú
<a href="javascript:window.open('','_top'); window.top.close();">Close IE7</a>
----------------------------
ÓÃwindow.open·½·¨´ò¿ªÐ´°¿ÚÏÔʾÌáʾÐÅÏ¢
ÓÐʱºòÎÒÃÇÐèÒª´ò¿ªÒ»¸öд°¿ÚÓÃÀ´ÏÔʾÌáʾÐÅÏ¢
Õâ¸ö×ÔÈ»»áÏëµ½ÓÃwindow.open()·½·¨
µ«Ð´°ÌåµÄÄÚÈݲ¢²»Êǹ̶¨µÄ
Èç¹ûÎÒÃǽ¨Á¢Ò»¸ö tip.html µÄ¾²Ì¬Ò³Ãæ,רÃÅÓÃÀ´ÈÃwindow.open´ò¿ª,´ò¿ªÖ®ºóÔÙÓÃjsÉèÖô°ÌåµÄÄÚÈÝ
ÕâÑù×öÒ²ÄÜÂú×ãÒªÇó,µ«ÊÇÓÐûÓиüºÃµÄ·½·¨ÄØ?
ÏÂÃæµÄ·½·¨¿ÉÒÔ²»Óý¨Ò»¸öרÃŵľ²Ì¬Ò³Ãæ,¶øÊÇÿ´Î¶¼ÊÇ´ò¿ªÒ»¸öÁÙʱ´°¿Ú,´°ÌåµÄÄÚÈÝÒ²ÊǶ¯Ì¬¹¹ÔìµÄ
Çë¿´´úÂë:
<input type=button value=open onclick="openWindow=window.open();
openWindow.document.writeln('<html>');
openWindow.document.writeln('<TITLE>Open Test</TITLE>');
openWindow.document.writeln('<BODY>');
openWindow.document.writeln('<center>');
openWindow.document.writeln('Hello! New window opened!');
openWindow.document.writeln('<br><br>');
openWindow.document.writeln('<input type=button value=close onclick=window.close()>');
openWindow.document.writeln('</center>');
openWindow.document.writeln('</BODY>');
openWindow.document.writeln('</HTML>');
openWindow.document.close(); " >
==========================================
ÍøÒ³ÆÁ±ÎÊó±êÓÒ¼üºÍ×ó¼üÑ¡Öй¦ÄÜ
document.oncontextmenu = new Function("event.returnValue=false;");
document.onselectstart = new Function("event.returnValue=false;");
=======================================================
ÓÃJavaScript»ñÈ¡¿Í»§¶ËMACµØÖ·(ת)
<HTML><HEAD><TITLE>WMI Scripting HTML</TITLE>
<META http-equiv=Content-Type conte
Ïà¹ØÎĵµ£º
/**
* CSSClass.js
*/
var CSSClass = {}; //Create our namespace object
//Return tru if element e is a member of the class c;false otherwise
CSSClass.is = fucntion(e, c)
{
if(typeof e == "string")
e = document.getElementById(e);
//Before doing a regexp search,optimize for couple of co ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="re ......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false&quo ......
£¨×¢£ºÒÔϹ¤¾ßµÄ½éÉÜת×ÔJAVAEYE 2Ô¿¯£©
¡¡¡¡½ñÌìÔÚJavaEye 2Ô¿¯ÉÏ¿´µ½ÕâÆª×ܽáJavaScriptµÄÎÄÕ£¬¾õµÃдµÄºÜºÃ£¬ÏÖ°ÑÕâЩ¹¤¾ßµÄ½éÉÜ×ªÔØ¹ýÀ´×ö¹ý±£´æ£¬ÒÔºóÓõ½µÄ»°Ò²¿ÉÒÔ²éѯ²éѯ:-P
¡¡¡¡ÔÚAJAXÁ÷ÐеĽñÌìºÜ´ó³Ì¶ÈÉϹ鹦ÓÚJavaScript£¬Èç¹ûûÓÐJS£¬ÏàÐÅAJAXÒ²ÎÞ´Ó̸Æð¡£JavaScriptÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ¿Í»§¶Ë½Å±¾ÓïÑÔ£¬Ë ......
ÔÚrubyÖÐÎÒÃÇ¿ÉÒÔͨ¹ý"*"²Ù×÷·ûÈ¥×Ö·û´®½øÐб¶Ôö£¬Èç"ruby"*2Ôò·µ»Ø"rubyruby"¡£ÔÚjavascriptÖУ¬×Ö·û´®Ö»ÄÜÓüӺţ¬Â³Ë·¨Ò²¼Ó·¨Ñݱä¹ýÀ´µÄ¡£ÎÒÃÇ¿ÉÒÔ¸ãÒ»¸öÊÔÊÔ¡£
·½·¨Ò»
String.prototype.times = function(n) {//IE6 530-640 FF3 400~550 IE8 840 ~1110 chrome 600~1000
&nb ......