![]() ![]() When you create a Blob URI, the browser holds onto the referenced memory until the document is unloaded or, until you explicitly revoke the URL. This method takes a Blob (or Blob-like object) and returns a String that can be used in any place that a URL might be used (such as an HREF attribute). This reference will be generated by the URL.createObjectURL() method. Except, instead of a Data URI, we're going to point the "href" attribute to an in-memory object reference. In this demo, we're going to be using a similar approach. Href="**data:**text/plain charset=utf-8." In the previous demo, I was setting an anchor tag's "href" attribute to point to a Data URI in the form of: View this code in my JavaScript Demos project on GitHub. Run this demo in my JavaScript Demos project on GitHub.
0 Comments
Leave a Reply. |