schmich / instascan

HTML5 QR code scanner using your webcam
https://schmich.github.io/instascan/
MIT License
2.97k stars 868 forks source link

how to get the scanned content to another tab window #249

Open carlosale2 opened 4 years ago

carlosale2 commented 4 years ago

is possible to scan the QR code and automatically send the content to another page? i tried using 'submit form' as submission way in javascript but doesn't work, thanks for helping me

skilledknight commented 3 years ago

Check this similar post here that I found relating to window open in another tab, https://github.com/schmich/instascan/issues/69

If it could help, share the result if you find the solution.

Matter of fact I have found the solution

in the javascript code where it says scanner.add listener () { alert(content) } , just write window.location.href = content; make sure that the content of the QRcode is your project URL. That's it. Share your reply. Cool