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>
¡¡
Ïà¹ØÎĵµ£º
Ê×ÏÈ¿´demo´úÂ룺
var student={
name:"leo",
intro:function(){
alert("my name is "+this.name);
}
}
var teacher=function(f){
f();
}
teacher(student.intro);
ÔÚÉÏÃæµÄdemo£¬¿ÉÒÔ¿´µ½ÏÔʽµÄ¶¨ÒåÁËÒ»¸ö¶ÔÏóstudent£¬ÓÐÒ»¸ö³ÉÔ±º¯ÊýintroºÍÒ»¸ö³ÉÔ±±äÁ¿¡£
ÁíÍⶨÒåÁËÒ»¸öº¯Êýteacher£¬½ÓÊ ......
Ïê½âjavascriptÀà¼Ì³Ð»úÖÆµÄÔÀí
Ŀǰ javascriptµÄʵÏּ̳з½Ê½²¢²»ÊÇͨ¹ý“extend”¹Ø¼ü×ÖÀ´ÊµÏֵ쬶øÊÇͨ¹ýconstructor functionºÍprototypeÊôÐÔÀ´ÊµÏּ̳С£Ê×ÏÈÎÒÃÇ´´½¨Ò»¸öanimalÀà
js ´úÂë
var animal = function(){ //Õâ¾ÍÊÇconstructor function ÁË&nbs ......
Javascript ÕýÔò±í´ïʽʹÓÃÊÖ²á
Javascript 2008-10-30 10:15 ÔĶÁ97 ÆÀÂÛ0
×ֺţº ´ó´ó ÖÐÖРСС
Ò»£®ÕýÔò±í´ïʽƥÅä³£ÓÃÓï·¨
“+”×Ö·û£º¹æ¶¨±í´ïʽ×Ö·û³öÏÖÒ»´Î»ò¶à´Î¡£
“*”×Ö·û£º¹æ¶¨±í´ïʽ×Ö·û³öÏÖÁã´Î»ò¶à´Î¡£
“? ......
½Å±¾ÖеÄʼþÓÐ2ÖÖÄ£ÐÍ
1¡¢ ðÅÝÐÍʼþ£ºÊ¼þÊǰ´ÕÕ´Ó×îÌØ¶¨µÄÄ¿±êµ½×î²»ÌØ¶¨µÄʼþÄ¿±ê(document)µÄ˳ÐòÒÀ´Î´¥·¢¡£ÕâÊÇÕë¶Ô²»Í¬ÔªËصÄͬһʼþÀàÐÍ
È磺
<html onclick=”handleClick()”>
<head></head>
<body onclick=”handleClick()”>
<div ......