浏览器变成记事本

  • html5,记事本,浏览器,
  • 2013-01-30 03:41:15

刚才在微博上看到一招,把浏览器变成笔记本。

先来个原文的链接吧。https://coderwall.com/p/lhsrcq

原文如下:

Introduction介绍

Sometimes I just need to type garbage(垃圾). Just to clear out my mind. Using editors to type such gibberish(快而不清的话) annoys (使烦恼)me because it clutters(弄乱) my project workspace (I'm picky(挑剔的), I know).

So I do this. Since I live in the browser, I just open a new tab and type in the url tab.

data:text/html, <html contenteditable>

Voila, browser notepad.

Why it works?

You don't need to remember it. It's not rocket science(科学). We are using the Data URI's format and telling the browser to render(给予) an html (try "javascript:alert('Bazinga');"). The content of said html is a simple html line with the html5 attribute(属性) contenteditable. This works only on modern browsers that understand this attribute. Click and type!

相关文章

- EOF -

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动。
转载请注明:文章转载自 Binkery 技术博客 [https://binkery.com]
本文标题: 浏览器变成记事本
本文地址: https://binkery.com/archives/189.html

赞助商
网站统计
  • 网站运行:3286 天
  • 文章总数:737 篇
  • 网站统计