Javascript¿çÓò·ÃÎʽâ¾ö·½°¸
ÓÉÓÚ°²È«·½ÃæµÄ¿¼ÂÇ£¬
Javascript
±»ÏÞÖÆÁË¿çÓò·ÃÎʵÄ
ÄÜÁ¦£¬µ«ÊÇÓÐʱºòÎÒÃÇÏ£ÍûÄܹ»×öһЩºÏÀíµÄ¿çÓò·ÃÎʵÄÊÂÇ飬ÄÇôÔõô°ìÄØ£¿
ÕâÀï·ÖÁ½ÀàÇé¿ö£º
Ò»¡¢»ùÓÚͬһ¸¸ÓòµÄ×ÓÓòÖ®¼äÒ³ÃæµÄ·ÃÎÊ
²Î¼ûÈçÏÂ
3
¸ö
domain
Óò£º
1
¡¢
taobao.com
2
¡¢
jipiao.taobao.com
3
¡¢
promotion.taobao.com
ËüÃÇÓÐÏàͬµÄ¸¸Óò
taobao.com
¶þ¡¢»ùÓÚ²»Í¬¸¸ÓòÒ³ÃæÖ®¼äµÄ·ÃÎÊ
²Î¼ûÈçÏÂ
3
¸ö
domain
Óò£º
1
¡¢
taobao.com
2
¡¢
baidu.com
3
¡¢
sina.com.cn
ËüÃǾßÓв»Í¬µÄ¸¸Óò¡£
½â¾öËüÃÇÖ®¼ä¿çÓòµÄ·½°¸£º
<!--[if !supportLists]-->¢Ù
<!--[endif]-->·þÎñÆ÷
Proxy:
Óò
A
µÄÒ³Ãæ
JS
ÐèÒª·ÃÎÊÓò
B
ϵÄÁ´½Ó»ñÈ¡Êý¾Ý£¬¸Ã·½°¸ÔÚÓò
A
µÄ·þÎñÆ÷¶Ë½¨Á¢Ò»¸ö
Proxy
³ÌÐò
(
¿ÉÄÜÊÇ
ASP
¡¢
servlet
µÈÈκηþÎñ¶Ë³ÌÐò
)
£¬Óò
A
µÄÒ³Ãæ
JS
Ö±½Óµ÷Óñ¾ÓòϵÄ
Proxy
³ÌÐò£¬
proxy
³ÌÐò¸ºÔð½«ÇëÇó·¢Ë͸øÓò
B
ϵÄÁ´½Ó²¢»ñÈ¡µ½Êý¾Ý£¬×î
ºóÔÙͨ¹ý
Proxy
½«Êý¾Ý·µ»Ø¸øÒ³Ãæ
JS
ʹÓá£
¾¹ýµÄ·ÃÎÊÁ÷³Ì¾ÍÊÇ£º
Óò
A
ÏÂ
JS--
à
Óò
A
ÏÂ
Proxy---
à
Óò
B
ϵÄÁ´½Ó
Àý×Ó£º
µÚÒ»²½£º
Óò
A:
http://Jipiao.taobao.com/test.htm
Ò³ÃæÉÏ
javascript
½Å±¾
view
plain
copy
to clipboard
print
?
<mce:script type=”text/javascript”><!--
Var&nbs
Ïà¹ØÎĵµ£º
Ò»¡¢¹¦ÄÜʵÏÖºËÐÄ£ºFileSystemObject ¶ÔÏó
ÒªÔÚjavascriptÖÐʵÏÖÎļþ²Ù×÷¹¦ÄÜ£¬Ö÷Òª¾ÍÊÇÒÀ¿¿FileSystemobject¶ÔÏó¡£
¶þ¡¢FileSystemObject±à³Ì
ʹÓÃFileSystemObject ¶ÔÏó½øÐбà³ÌºÜ¼òµ¥£¬Ò»°ãÒª¾¹ýÈçϵIJ½Ö裺 ´´½¨FileSystemObject¶ÔÏó¡¢Ó¦ÓÃÏà¹Ø·½·¨¡¢·ÃÎʶÔÏóÏà¹ØÊôÐÔ ¡£ ......
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý× ......
< a href =
"#"
onClick =
"javascript:window.external.AddFavorite(document.URL,document.title);return
false"
rel=
"sidebar"
> Êղر¾Ò³ </ a >
È¡µÃµ±Ç°Ò³µÄURL: document.URL
È¡µÃµ±Ç°Ò³µÄtitle: document.title
ʵÏÖÔÚFirefoxÖГÊÕ
²Ø±¾Ò ......
javascriptËù¶ÔÓ¦µÄÈ«Ñ¡ºÍ·´Ñ¡ ¡£²Ù×÷Êý¾Ý¿â¼Ç¼¡£
ÒÔÏÂÊÇÒ³Ãæ´úÂ룺
<tr>
<td colspan="6" width="100%">
<table border="2" width="100%">
<tr class="center">
<th width="20%& ......
1. ÈÃÎÄ×Ö²»Í£µÄ¹ö¶¯¡£
<marouee>¹ö¶¯ÎÄ×Ö</marouee>
2.¼Ç¼²¢ÏÔʾÍøÒ³µÄ×îºóÐÞ¸Äʱ¼ä
<script language="javascript">
doucument.write("×îºó¸üÐÂʱ¼ä£º" + document.lastModified + " " ......