Interactive JavaScript example
Enable the button when the field has text
Enter a made-up name to enable the button. Submitting is intercepted in this demo; nothing is sent to a server.
Privacy: This standalone example runs locally in your browser and does not submit or save the entered text. Use sample text only.