Ecrire en JS dans un textarea
Résolu/Fermé
niconovice
Messages postés
954
Date d'inscription
lundi 10 novembre 2008
Statut
Membre
Dernière intervention
3 mars 2014
-
15 mai 2010 à 16:17
niconovice Messages postés 954 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 3 mars 2014 - 15 mai 2010 à 16:54
niconovice Messages postés 954 Date d'inscription lundi 10 novembre 2008 Statut Membre Dernière intervention 3 mars 2014 - 15 mai 2010 à 16:54
A voir également:
- Textarea js
- Round js ✓ - Forum Javascript
- Php textarea ✓ - Forum PHP
- Onclick js - Astuces et Solutions
- Js/packed.agent.n ✓ - Forum Virus / Sécurité
- Calendrier js - Forum Javascript
2 réponses
niconovice
Messages postés
954
Date d'inscription
lundi 10 novembre 2008
Statut
Membre
Dernière intervention
3 mars 2014
85
15 mai 2010 à 16:54
15 mai 2010 à 16:54
voilà la reponse trouvé sur un site americain...
<head>
<script language="javascript" type="text/javascript">
function addtext(text) {document.form.champ.value = document.form.champ.value+= text;}
</script>
</head>
<body>
<form action="" method="" name="form">
<textarea name="champ" rows="5" cols="50" wrap="wrap"></textarea>
</form>
<a href="javascript:addtext(' lol,');">Add text</a>
<a href="javascript:addtext(' lul,');">Add text</a>
</body>
</html>
niconovice
Messages postés
954
Date d'inscription
lundi 10 novembre 2008
Statut
Membre
Dernière intervention
3 mars 2014
85
Modifié par niconovice le 15/05/2010 à 16:20
Modifié par niconovice le 15/05/2010 à 16:20
bon le site bug mais le js c'est:
function ecrire()
{
document.getElementByName("ameliorer").write("coucou");
}