0
我正在嘗試使用href按鈕設置表單。我一直在改變不同的事情,並提交了幾次表格,從10我只收到1封電子郵件。我知道它的工作原理,但我的問題是爲什麼它只有時纔有效?這裏是我的代碼:通過href鏈接將表格發送至個人電子郵件
'<form id="search-form1">
<fieldset>
<div class="extra-wrap">
<div class="col-1">
<label><input type="text" value="Your full name (required) " onFocus="if(this.value=='Your full name (required) '){this.value=''}" onBlur="if(this.value==''){this.value='Your full name (required) '}" /></label>
<label><input type="text" value="Your email address (required)" onFocus="if(this.value=='Your email address (required)'){this.value=''}" onBlur="if(this.value==''){this.value='Your email address (required)'}" /></label>
<label><input type="text" value="Subject" onFocus="if(this.value=='Subject'){this.value=''}" onBlur="if(this.value==''){this.value='Subject'}" /></label>
</div>
<div class="col-2">
<textarea onBlur="if(this.value=='') this.value='Your message'" onFocus="if(this.value =='Your message') this.value=''">Your message</textarea><br>
<img src="images/page1-img15.gif" alt="" class="img">
<label><input type="text" class="input1" value="" onFocus="if(this.value==''){this.value=''}" onBlur="if(this.value==''){this.value=''}" />
<a href="mailto:[email protected]" class="link8" onclick="document.getElementById('search-form1').submit();return false">Send</a>
</label>
</div>
</div>
</fieldset>
</form>'
謝謝你,我雖然可以通過使用aR href –
@RamonRamirez逃避加載項:當然可以。如果我的答案對您有幫助,請考慮通過點擊左側問題分數下的大勾號來接受它。 –