How to store HTML-Page inside QRCode?

Viewed 1638

i would like to create a QR-Code containing a very simple website. The problem is, i would like to store the page inside the QR-Code, not as a url pointing to a website. So the qr-code contains the source code to the whole page and works without internet.

My first though was to store the page inside the qr-code as a data url. Eg. "data:text/html;...". This does theoreticly work but so far i didn't find a qr-code scanner which is able to open it in a way the page would be displayed.

I found out some qr-code scanners open content starting with "javascript:" in the browser but i wasn't able to display a page that way either. (With "window.open" or "document.write" as example).

My best guess to create a qr-code, which most qr-code scanners would open in a browser, is to create one starting with http://. But i dont know a way to store the html source code in a url starting with http://.

Any help would be welcome :)

3 Answers

data:text/html,{html of your page}

Unfortunately, the browsers are going to block Data: URI for security reasons. The same for Javascript: URI.

Related