javascript ¸¸´°¿Ú ×Ó´°¿Ú
¸¸´°¿ÚÖÐÓÐÈýÖÖ·½Ê½´ò¿ª×Ó´°¿Ú£º
1£º
window.open(URL,windowName,parameters);
2:
alert(""); //µ¯³öÐÅÏ¢Ìáʾ¶Ô»°¿ò
confirm(""); //µ¯³öÐÅϢȷÈ϶Ի°¿ò
prompt(""); //¾ßÓн»»¥ÐÔÖʵĶԻ°¿ò
3:
//´´½¨Ä£Ì¬Äã¶Ô»°¿ò
window.showModalDialog(sURL,vArguments,sFeatures)
//´´½¨·Çģ̬¶Ô»°¿ò
window.showModelessDialog(sURL,vArguments,sFeatures)
¸¸´°¿ÚÓë×Ó´°¿ÚµÄÖµ´«µÝ:
ÔÚ×Ó´°¿ÚÖÐͨ¹ý£ºwindow.dialogArguments»ñµÃ¸¸´°¿ÚÖеÄÖµ£¬
ͨ¹ýwindow.returnValueÈ¥´«Öµ¸ø¸¸´°¿Ú¡£
//ͨ¹ý×Ó´°¿ÚÌá½»¸¸´°¿ÚÖÐµÄ±íµ¥£ºform1,Ìá½»ºóÖ´Ðвéѯ²Ù×÷
var parent=window.dialogArguments;
parent.document.form1.action="QueryInfor.jsp";
parent.submit();
ÔÚ¸¸´°¿ÚÖУº
parasent.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<script type="text/javascript">
function showDialog(){
var obj = new Object();
obj.name="hah";
var a = window.showModalDialog("child.html",window,"");
alert("×Ó´°¿ÚµÄÖµ£º"+a);
}
function o(){
alert("nihao");
}
</script>
<BODY>
<input type="text" id="name" /><br/>
<input type="button" onclick="showDialog()" value="µã»÷">
</BODY>
</HTML>
ÔÚ×Ó´°¿ÚÖУº
child.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<script type="text/javascript">
function o(){
var v = window.dialogArguments;
alert("ÖµÊÇ£º"+v.name);
window.returnValue="http://www.i5tt.com";
Ïà¹ØÎĵµ£º
±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔÀ´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷ÔÒò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......
³ÌÐòÉè¼ÆÖлᾳ£Åöµ½Ò»ÖÖÇé¿ö£¬¾ÍÊÇÊÂÏÈÎÞ·¨µÃÖªÓû§»áÐèÒªÄÄЩÊý¾Ý£¬±ØÐë¸ù¾ÝÓû§Ñ¡ÔñºóÔÙ´Ó·þÎñÆ÷
ÖØÐÂÌáÈ¡Êý¾Ýºó·´À¡¸øÓû§¡£±ÈÈçÒ»¼òµ¥µÄÇé¿ö£¬Óû§Ñ¡ÔñÊ¡·ÝÒÔºó£¬ÎÒÃÇÁ¢¼´»áÔÚÊÐÀï±ß½«Õâ¸öÊ¡µÄËùÓÐ
ÊÐÖØÐÂÏÔʾ³öÀ´¡£ÕâÖÖÇé¿öÒ»°ãÐèÒª½«Õû¸öÒ³Ãæˢкó²Å¿ÉÒÔÖØжÁÈ¡£¬µ«ÕâÑù²»½öЧÂʲ»¸ßÍ⣬ҲÏԵò»
Ì«ÓÅÑÅ¡£Æäʵ ......
°æȨÉùÃ÷£ºÔ´´×÷Æ·£¬ÔÊÐíתÔØ£¬×ªÔØʱÇëÎñ±ØÒÔ³¬Á´½ÓÐÎʽ±êÃ÷ÎÄÕ Ôʼ³ö´¦ ¡¢×÷ÕßÐÅÏ¢ºÍ±¾ÉùÃ÷¡£·ñÔò½«×·¾¿·¨ÂÉÔðÈΡ£http://gzycm520.blog.51cto.com/175220/36822
· ʼþÔ´¶ÔÏó event.srcElement.tagName event.srcElement.type
· ²¶»ñÊÍ·Å event.srcElement.setCapture(); ......
$(document).ready(function() {
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject)
&nbs ......
Ñо¿ÁË°ëÌì,²»¹ýòËÆ»¹ÊÇÖ»ÄÜÔÚIEÉÏʵÏÖ,ÆäËûä¯ÀÀÆ÷²»Ö§³ÖEMBED ±êÇ©
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÓÃjavascriptÖÆ×÷³¬Á´½ÓµÄ±³¾°ÒôЧ</title>
<script language="JavaScript" type="text/JavaScript">
<!--
......