Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascript ´°¿Ú

//¹Ø±Õ,¸¸´°¿Úµ¯³ö¶Ô»°¿ò,×Ó´°¿ÚÖ±½Ó¹Ø±Õ
this.Response.Write("<script language=javascript>window.close();");
//¹Ø±Õ,¸¸´°¿ÚºÍ×Ó´°¿Ú¶¼²»µ¯³ö¶Ô»°¿ò,Ö±½Ó¹Ø±Õ
this.Response.Write("");
this.Response.Write("{top.opener =null;top.close();}");
this.Response.Write("");
//µ¯³ö´°¿Úˢе±Ç°Ò³Ãæwidth=200 height=200²Ëµ¥¡£²Ëµ¥À¸,¹¤¾ßÌõ,µØÖ·À¸,״̬À¸È«Ã»ÓÐ
this.Response.Write("<script language=javascript>window.open
(~rows.aspx~,~newwindow~,~width=200,height=200~)");
//µ¯³ö´°¿Úˢе±Ç°Ò³Ãæ
this.Response.Write("<script language=javascript>window.open(~rows.aspx~)");
this.Response.Write("window.open(~WebForm2.aspx~,~_blank~);");
//µ¯³öÌáʾ´°¿ÚÌøµ½webform2.aspxÒ³(ÔÚÒ»¸öIE´°¿ÚÖÐ)
this.Response.Write(" <script language=javascript>alert(~×¢²á³É
¹¦~);window.window.location.href=~WebForm2.aspx~; ");
//¹Ø±Õµ±Ç°×Ó´°¿Ú,ˢи¸´°¿Ú
this.Response.Write
("window.opener.location.href=window.opener.location.href;window.close
();");
this.Response.Write("window.opener.location.replace
(window.opener.document.referrer);window.close();");
//×Ó´°¿Úˢи¸´°¿Ú
this.Response.Write
("window.opener.location.href=window.opener.location.href;");
this.Response.Write("window.opener.location.href=~WebForm1.aspx~;");
//µ¯³öÌáʾ´°¿Ú.È·¶¨ºóµ¯³ö×Ó´°¿Ú(WebForm2.aspx)
this.Response.Write("<script language=~javascript~>alert(~·¢±í³É¹¦£¡~);window.open
(~WebForm2.aspx~)");
//µ¯³öÌáʾ´°¿Ú,È·¶¨ºó,ˢи¸´°¿Ú
this.Response.Write("alert(~·¢±í³É
¹¦£¡~);window.opener.location.href=window.opener.location.href;");
//µ¯³öÏàͬµÄÒ»Ò³
<INPUT type="button" value="Button" onclick="javascript:window.open(window.location.href)">
//
Response.Write("parent.mainFrameBottom.location.href=~yourwebform.aspx?temp=" +str+"~;");
<SCRIPT LANGUAGE="javascript">
<!--
window.open (~page.html~, ~newwindow~, ~height=100, width=400, top=0, left=0, toolbar=no,
menubar=no, scrollbars=no, resizable=no,location=n o, status=no~) //Õâ¾äҪд³ÉÒ»ÐÐ
-->
</SCRIPT>
¡¡¡¡


Ïà¹ØÎĵµ£º

[JavaScript]ÀàÖ®¶þ

javascript ÀඨÒå4ÖÖ·½·¨
Java´úÂë
/*  
   ¹¤³§·½Ê½--- ´´½¨²¢·µ»ØÌض¨ÀàÐ͵ĶÔÏóµÄ ¹¤³§º¯Êý £¨ factory function £©   
*/  
    
  
function createCar(color,doors,mpg){   
   ......

javascript Öеļ̳з½·¨

1.¿ÉÒÔͨ¹ýprototypeÊôÐÔ£¬ÊµÏּ̳з½·¨µÄ·½Ê½£¬ÕâÖÖ·½Ê½¾ÍÊÇjavaÓïÑÔÖм̳еı任ÐÎʽ¡£
 // Create the constructor for a Person object
function Person( name ) {
    this.name = name;
}
// Add a new method to the Person object
Person.prototype.getName = function() {
   ......

JavaScript ÕýÔò±í´ïʽ Ñ¡Ôñ¡¢·Ö×éºÍÒýÓÃ

JavaScriptµÄÕýÔò±í´ïʽ֧³Ö²¼¶û²Ù×÷£¬³ýÁË×÷Ϊ Ñ¡ÔñµÄ“²¼¶û»ò”²Ù×÷Ö®Í⣬ÕýÔò±í´ïʽ»¹Ö§³Ö·Ö×éºÍÒýÓÃ
¡£ÆäʵѡÔñ¡¢·Ö×éºÍÒýÓõÄ×÷Ó÷ֱðΪ£ºÖ¸¶¨Ñ¡ÔñÏî¡¢¶Ô×Ó±í´ïʽ·Ö×éºÍÒýÓà ǰһ×Ó±í´ïʽµÄÌØÊâ×Ö·û¡£
ÕýÔò±í´ïʽµÄÑ¡Ôñ£º
ËùνѡÔñ¼´ÔÚ¶à¸öÌõ¼þÀïÃæÑ¡ÔñÒ»¸ö£¬±ÈÈç˵ÂôË®¹ûµÄ´óү˵ËÍÄã¸öË®¹û£¬Äã¿ÉÒÔÑ¡Ô ......

javascript ÉèÖÃcookie×¢ÒâÊÂÏî

javascript ÉèÖÃcookie×¢ÒâÊÂÏî
javascript ÉèÖÃcookie×¢ÒâÊÂÏî
ÔÚJavascript ÖУ¬cookie ¿ÉÒÔͨ¹ý document.cookie½øÐÐÉèÖ㬵±ÉèÖöà¸öcookieʱä¯ÀÀÆ÷»á×Ô¶¯°Ñ
ËüÃÇÓ÷ֺŸô¿ª¡£ÈçÏ£º
document.cookie = 'cookie1';
document.cookie ='cookie2';
alert (document.cookie) ;//Êä³ö cookie1 ; cookie2
µ«ÊÇÈç¹û°ÑµÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ