Generating a Simple QR-Code with just HTML

前端 未结 1 1526
不知归路
不知归路 2021-01-14 00:26

I came across this APIserver to generate the QRCode but I was wondering is it possible to just use HTML to generate the QRcode for example this is what I was th

1条回答
  •  一生所求
    2021-01-14 00:47

    Were you thinking of something like this? https://jsfiddle.net/v7d6d1ps/

    Your HTML can be similar to what you have but with added onblur event. Only HTML cannot do this, so I have added jQuery/JavaScript combination.

    
        
            Testing QR code
            
            
        
        
             
    
          
        
    
    

    Copy and paste this into an HTML file on your desktop. Type in the text box 12345 and hit tab. Notice that the QR code will update.

    0 讨论(0)
提交回复
热议问题