QRCode.js

QRCode.js is javascript library for making QRCode. QRC ode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies.

JS CDN

<script src="https://sainisahab.com/Qrcode/js/qrcode.min.js"><script>

Basic Usages

<div id="qrcode"></div>

<script type="text/javascript">
          new QRCode(document.getElementById("qrcode"), "sainisahab.com");
</script>
or with some options
var qrcode = new QRCode("test", {
        text: "http://jindo.dev.naver.com/collie",
        width: 128,
        height: 128,
        colorDark : "#000000",
        colorLight : "#ffffff",
        correctLevel : QRCode.CorrectLevel.H
});
and you can use some methods
qrcode.clear(); // clear the code.
qrcode.makeCode("http://naver.com"); // make another code.

Sample Code

HTML
<div id="qrcode"></div>
<input type="text " id="Value" onchange="app()">
                      

Javascript
<script>  
    var qr = document.getElementById('Value');
    var qrcode = new QRCode(document.getElementById("qrcode"));
          
    function app(){
            ar value = qr.value;
            qrcode.makeCode(value);
    }
</script>

Run Code

Browser Compatibility

IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.