Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nrlsyhmina/426e5eacd3354ed0f0c02dba451bc9bf to your computer and use it in GitHub Desktop.
Save nrlsyhmina/426e5eacd3354ed0f0c02dba451bc9bf to your computer and use it in GitHub Desktop.
<form class="mb-4" action="javascript:void(0);">
<input type="text" class="form-control mb-4" placeholder="Name*" id="name" />
<input
type="text"
class="form-control mb-4"
placeholder="Email*"
id="email"
/>
<input
type="text"
class="form-control mb-4"
placeholder="Subject*"
id="subject"
/><textarea
class="form-control"
id="message"
rows="5"
placeholder="Message*"
></textarea
><button class="btn btn-primary mt-4" onclick="send_ws()">
Send Message
</button>
</form>
<!--Javascript-->
<script>
function send_ws() {
let msg = document.getElementById("message").value;
let sub = document.getElementById("subject").value;
let email = document.getElementById("email").value;
let name = document.getElementById("name").value;
var win = window.open(`https://wa.me/${6noanda}?text=Hello%20Nurul%20Syahmina,%0A%0AI%27m%20*${name}*%0A*Email:*%20${email}%0A*Message:*%20${msg}%0A*Subject:*%20${sub}`, '_blank');
// win.focus();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment