Posts

Showing posts from July 1, 2023

New Post

JavaScript Dynamic Barcode Generator || Step-By-Step || ~xRay Pixy

Image
SOURCE CODE <html> <head> <title>Dynamic Barcode Generator</title> <link rel="stylesheet" href="bar.css"/>  <script src="https://cdn.jsdelivr.net/npm/jsbarcode@3.11.3/dist/JsBarcode.all.min.js"></script> </head> <body> <center> <h1>Dynamic Barcode Generator</h1> <div id="box">   <input id="barcode-input" type ="text" placeholder="Enter Text for Barcode"/>   <button onclick="BarCodeGenerate()" >Generate Barcode</button> <br><br>   <svg id ="barcode"></svg> </div>   <script>      function BarCodeGenerate(){          var text = document.getElementById("barcode-input").value;          JsBarcode("#barcode",text);      }             </script> </center> </body> </html>
More posts