Full HTML/CSS/JS implementation in the zh-cn version. This page describes the features.

Features

  • Real-time field validation (blur + input events)
  • ✅ Async submission (no page refresh)
  • ✅ Loading state (disabled button + spinner)
  • ✅ Error messages (field-level + global)
  • ✅ Success feedback (replaces form with success message)
  • ✅ Honeypot anti-spam field
  • ✅ Works with PHP, Node.js, Flask backends

Quick Integration

  1. Copy the HTML form into your page
  2. Copy the CSS into your stylesheet
  3. Copy the JavaScript and update the fetch('/api/contact') URL to your backend endpoint
  4. Make sure your backend returns JSON with { success: true, message: '...' } or { error: '...' }