Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

qrcode.js

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js" ></script>
Comment

How to generate a QR code in JavaScript?

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Generating QR Code</title>
    <!-- Reference the qrcode library -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
  </head>
  <body>
    <!-- Create a container for the QR code -->
    <div id="qrcode-container"></div>
    <!-- A button that is used to create QR code -->
    <button id="create-qrcode">CREATE QR Code</button>
  </body>
  <script>
    // Create QR code when button is clicked
    document.getElementById("create-qrcode").addEventListener("click", () => {
      // new QRCode(Target container, text to encode)
      var qrc = new QRCode(
        document.getElementById("qrcode-container"),
        "https://www.wissamfawaz.com/index.htm"
      );
    });
  </script>
</html>
Comment

qr code generator with javascript

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js"></script>
Comment

qrcode js

var qrcode = new QRCode("test", {
    text: "http://jindo.dev.naver.com/collie",
    width: 128,
    height: 128,
    colorDark : "#000000",
    colorLight : "#ffffff",
    correctLevel : QRCode.CorrectLevel.H
});
Comment

qrcode js

<div id="qrcode"></div>
<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "http://jindo.dev.naver.com/collie");
</script>
Comment

qr code generator with js

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: angular two datepickers 
Javascript :: pass element from child to parent react 
Javascript :: javascript number to string 
Javascript :: react native share link 
Javascript :: GET FORM VALUE 
Javascript :: what is an arrow function and how is it used in react 
Javascript :: how to decode jwt token at frontend 
Javascript :: delete node between indexes node list js 
Javascript :: write files in Node.js 
Javascript :: sweetalert2 small icon 
Javascript :: local reference in angular 
Javascript :: paper in material ui 
Javascript :: material-ui.com autocomplete grouped 
Javascript :: how to define connection string in appsettings.json 
Javascript :: how to add changes every time you route navigate to page in angular 
Javascript :: jquery dialog modal on modal 
Javascript :: promise in es6 
Javascript :: react link vs navlink 
Javascript :: fullcalendar edit event modal react 
Javascript :: useref example 
Javascript :: jquery remove all alerts 
Javascript :: javascript bind multiple arguments 
Javascript :: document.getelementsbyname 
Javascript :: dot notation vs bracket notation 
Javascript :: js list random order 
Javascript :: react native flatlist flex direction 
Javascript :: find the second largest number in an array javascript 
Javascript :: nodemailer 
Javascript :: upload file angular rest api 
Javascript :: react input text onchange target method 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =