String Validation In Javascript

Image

Vulnerability in HTML Design: