SlpCtrl
06-12-2008, 03:39 AM
How can I make a bookmarklet, that when I press it it inserts a specified text into the selected input field?
|
||||
Bookmarklet helpSlpCtrl 06-12-2008, 03:39 AM How can I make a bookmarklet, that when I press it it inserts a specified text into the selected input field? rangana 06-12-2008, 05:26 AM Have you went on bookmarklet (http://www.bookmarklets.com/) page already. Philip M 06-12-2008, 08:28 AM <form name = "myform"> <input type = "text" name = "txt1" id = "txt1" size = "40"><br> <input type = "button" value = "Click here to insert text" onclick = "insertText()"> </form> <script type = "text/javascript"> function insertText() { var addtxt = "The text you want to insert"; document.myform.txt1.value = document.myform.txt1.value + addtxt; } </script> Quizmaster: Name a mountain in Asia beginning with E which rises to over 29,000 feet. Contestant: Would it be oxygen? rangana 06-12-2008, 08:32 AM Haha. I should have admit that i'm confused on what "bookmarklet" suppose to be. Philip M 06-12-2008, 08:41 AM Haha. I should have admit that i'm confused on what "bookmarklet" suppose to be. Yes, so is the OP! SlpCtrl 06-12-2008, 06:48 PM I know what a bookmarklet is >: (. What I want to do is have a link in my bookmarks to insert the HTML entity for a blank space, to make blank posts in a forum that I go to often so that I don't have to manually type it. The HTML entity I'm refering to is & # 3 2 ; of course. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum