惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - rangeliu

批判下微软的sql面试题 SQL Server 报表系统导出txt格式方法 Reporting Service报表纵向单元格合并 SSAS中命名集(SET)的使用 返回指定成员所有下级成员的MDX语句 MDX学习——初始MDX [收藏]Oracle 性能优化 [收藏]使用XML技術實現OWC對數據庫的展示 十六進制的字符串轉換為double類型 [收藏]递归算出两个数字之间所有数字之和 [收藏]String与string的区别 [收藏]中英文颜色对照表 [收藏]C# WinForm程序如何与JS交互 [收藏]在C#程序中使用系统热键 [转载]动态调用WebService(C#) [转载] .NET脏字过滤算法 [转载]使用Response.Filter过滤非法词汇 [转载]asp.net面试集合 [转载]WEB开发碰到的问题及经验十八则
[收藏]about协议的妙用
rangeliu · 2009-01-24 · via 博客园 - rangeliu

相信知道about协议的人不多,其实它跟HTTP一样,是属于协议的一种,这里给出它的几种妙用:

1.有些网站为了防止外站链接本站资源,用程序对链接地址作了一些限制,非本站直接链接到的就无效~~~~说得不太清楚,大家知道意思就是了。举个例子,目标地址是www.flash8.net,在你的网页里就可以这样用: 

<a href="about:<a href=http://www.flash8.net>flash8</a>" target=_blank>闪吧</a>

这样能打开http://www.flash8.net的链接在新打开的窗口里可以点了

2.有不少有都用过iframe了,不知道有没有发现它的一个问题呢?--就是改变不了它的背景颜色。现在用about协议轻松搞定:

<iframe src="about:<body bgcolor=#455796>看到效果没有?</body>"></iframe>

3.玩无边窗口的注意啰!一般无边窗口的无提示关闭都是用一个控件实现的,据说这个控件是outlook的,如果没装这个,窗口就关闭不了了。这个例子是利用子窗口用window.close()关闭时无提示的原理,而用about协议构造一个假的子窗口来骗浏览器,达到无提示关闭的目的(这个方法是我在蓝色经典上找到的,以上两个是自己摸索出来的):

Code
<body onload="var cw=window.open('about:<body bgcolor=buttonface scroll=no>OPOEVER<br><br><span onclick=self.close()>点这里关闭</span></body>','','fullscreen');cw.resizeTo(400,300);cw.moveTo(screen.width/2-200,screen.height/2-150);opener='popo';window.close();"> 
</body>