Huhu GodLikerz
Hier hab ich mal einen Code wie ihr mit Javascript in ein Textarea schreiben könnt(mit inputbox natürlich)
Alles anzeigen
Ist eigentlich ganz einfach, lernt schö ndraus und HF^^
Mfg lassu
Hier hab ich mal einen Code wie ihr mit Javascript in ein Textarea schreiben könnt(mit inputbox natürlich)
Quellcode
- <script type="text/[URL="http://amazon.de/gp/product/3897214717?ie=UTF8&tag=tutorialsde-21&link_code=em1&camp=2510&creative=11150&creativeASIN=3897214717&adid=1a446149-9f87-4bd7-969f-b20c49c13f69"]javascript[/URL]" language="javascript">
- function fett()
- {
- text = prompt("<b>xxx</b>","");
- if(text!="")
- {
- text = "<b>"+ text +"</b>";
- document.formular.textarea.value += text;
- }
- }
- </script>
- <form name="formular">
- <input type="button" value="fett" onclick="fett()"><br>
- <textarea name="textarea"></textarea>
- </formular>
Ist eigentlich ganz einfach, lernt schö ndraus und HF^^
Mfg lassu