|
|
|
解析IE中的about:blank
作者: 来源:[化境编程界] 点击: 日期:2006-11-18 |
|
当你打开一个新的IE窗口时,IE的url中总是 about:blank。我们知道 在url中‘: (冒号)左边是协议,如 ftp: 或是 http:。而about也是个协议。那有什么用呢,不可 小看。
about:blank 右边为 blank 表示一个空的窗口,若为其它的内容,就可表示网页的内 容。例如页面:
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor="#FFFFFF"> <!--注意,下面href后没有双引号,若要加入需用%22--> <a href="about:<a href=http://home.kzinfo.net/getc/>化境编程界</a>" target="_blank">点此打开about新页面</a> </a> </body> </html>
(点此测试:点此打开about新页面)
新网页的内容为: <html><a href="about:<a href=http://home.kzinfo.net/getc/>化境编程界</a>" target="_blank">点此打入新页面</a> </html>
这样就可以不使用javascript对新窗口写内容了。
about:这个功能不止如此。有个人主页的网友一定深有体会,有的网站做了URL过滤 (如网易和亿唐),禁止从别站链接他的服务器内容,用about:产生的页面就可以躲开 URL检查。如:
<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> </head> <body bgcolor="#FFFFFF"> <!--注意,下面href后没有双引号,若要加入需用%22--> <a href="about:<a href=http://xxx.xxxxx.com/xxx.zip> 点此下载 </a>" target="_blank"> 点此打入下载页面 </a> </body> </html>
|
|
|
|
【文章评论】
【收藏本文】
【推荐好友】
【打印本文】
【论坛讨论】 |
相关文章: |
|
|
文章评论:(条) |
|
|
|
|
责任编辑:一分 声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。 |
|