Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mailto: query.

Featured Replies

Hi,

 

As you can see on my test website:

 

 

I have a contact form for emails at the bottom of the homepage. How can I make it so when the submit button is pressed it brings up this?

 

 

Here's my HTML for it:

	<footer class="footer" id="FOOTER">
		<h3 style="margin-left:445px; margin-bottom:-80px; margin-top:0px; font-weight:700;">CONTACT US</h3>
		<img alt="img" src="images/misc/1.png" style="margin-left:515px; margin-top:100px; margin-bottom:-75px;">

		<div class="container">
			<div class="footer-middle">
				<div class="row">
					<div class="col-md-6">
						<form class="subscribe-form">
							<input name="email" placeholder="E-mail address" type="email"> <input class="btn-common contact-btn" type="submit" value="SUBMIT"> <!-- WORKING ON IT. --> <!-- <a href="mailto:bostonrowingclub@gmail.com?subject=Enquiry%20from%20the%20Website.&body=To%20whom%20it%20may%20concern," -->
						</form>
					</div>

This is urgent,

 

Lewis.

Edited by Louwwieee42

Why would you have a contact form that opens your email client? The point of having a form is that you don't have to have other email software available to send something. Anyway it would be easier to make the submit button a styled href so you can use mailto links.

<a href="mailto:test@test.com?subject=Your subject" title="">Submit</a>

You will also need to bind the value from your text input to the email subject using JS.

I recommend putting in an actual form instead, you can't do any validation on this and non-escaped special characters will likely stop the link from working.

  • 3 weeks later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.