Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Formular: Standardeintrag beim reinklicken löschen?

Empfohlene Antworten

Veröffentlicht

Hallo!

Ich habe mir für eine Homepage ein sehr ähnliches Kontaktformular gebastelt, onlyfree.de verwende ich zu Testzwecken:

<tr>

<td height="151" width="152" bgcolor="#00246B"><div align="center">

</div></td>

<td width="830" height="380" background="png/Fun_BG.png">

<form action="http://www.onlyfree.de/generator/kontakt/formmail.php" method="POST" name="MyForm1">

<input type="hidden" name="redirect" value="http://www.onlyfree.de/generator/kontakt/danke.htm">

<input type="hidden" name="typemail" value="html">

<input type="hidden" name="crypt" value="0"

><input type="hidden" name="einleittext" value="">

<input type="hidden" name="admin1" value="">

<input type="hidden" name="admin2" value="">

<input type="hidden" name="subject" value="Nachricht eines Besuchers"><input type="hidden" name="admin" value="sickstylez@gmx.de"> <div align="center">

<table border="0" cellpadding="3" cellspacing="2">

<tr>

<td colspan="2"><font face="Arial,helvetica" font color="#FFFFFF" size="+1">  </font></td>

</tr>

<tr>

<td colspan="2"><font face="Arial,helvetica" font color="#FFFFFF" size="-1"><br>

</font></td>

</tr>

<tr>

<td align="right" bgcolor="#CC3333"><font color="#FFFFFF" face="Arial,helvetica" size="-1">Name

:</font></td>

<td bgcolor="#CC3333"><input type="text" name="name" value size="20"></td>

</tr>

<tr>

<td align="right" bgcolor="#CC3333"><font color="#FFFFFF" face="Arial,helvetica" size="-1">     

Ihre Emailadresse:</font></td>

<td bgcolor="#CC3333"><input type="text" name="email" value size="20"></td>

</tr>

<tr>

<td align="right" valign="top" bgcolor="#CC3333"><strong><font color="#000000"><br>

</font><font color="#FFFFFF" face="Arial,helvetica" size="-1">Kommentar:</font></strong></td>

<td bgcolor="#CC3333"><textarea cols="30" rows="10" name="comment"></textarea></td>

</tr>

<tr>

<td colspan="2"><font face="Arial,helvetica"><input type="submit" name="next"

value="Abschicken"><input type="reset" name="next" value="Zurücksetzen"></font></td>

</tr>

</table>

</div>

</form> </td>

</tr>

Ich möchte in meinen Feldern (wie z.B. Name) schon "Name" stehen haben und wenn der User in das Feld klickt, soll der "Name" gelöscht werden, wenn ich dann, ohne etwas einzutragen woanders klicke, soll "Name" im Feld wieder erscheinen, wie kann ich das umsetzen, bzw. wie kann ich in so einem Feld bestimmte Bedingungen abfragen?

Das kannst du ungefähr so lösen:


<input type="text" name="name" value="Name" size="20" onfocus="if(this.value=='Name') this.value='';" onblur="if(this.value=='') this.value='Name';">

An sich ist es allerdings empfehlenswert das ganze als js-funktion zu schrieben aber so gehts auch erstma ^^

mfg

Eth

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.