<span>Введи <b>JS</b></span>
<input type="text">
const input = document.querySelector('input')

input.addEventListener('input', function(e) {
  if(this.value.match(/JS/)) {
    this.disabled = true
  }
})

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.