Hacker News new | ask | show | jobs
by ant6n 2107 days ago
But the snake in a QR code probably works offline
1 comments

A javascript: URL can work offline. Try this: javascript:document.write("hello world");

Note that if you cut and paste into Chrome it may delete the "javascript:" part and you will have to add that back.

Can a QR code convert to JavaScript like that? i.e. instead of opening a webpage it just executes some JavaScript.