Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<html>
    <body>
        <div>
            <textarea cols="20" id="Story" name="Story" rows="2" style="width:700px;height:300px">
                    this is a an example on how to insert text inside an input field like this one, precisly at the position of the cursor.
                    to try this out, place the cursor at any point inside, and hit the button "let the magic begin!"
            </textarea>
        </div>
        <input type="button" value="let the magic begin!" onclick='javascript:DoTheWork()' />
    </body>
    
</html>
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers