Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript" language="JavaScript">
- function Jump(line)
- {
- var ta = document.getElementById("TextArea");
- var lineHeight = ta.clientHeight / ta.rows;
- var jump = (line - 1) * lineHeight;
- ta.scrollTop = jump;
- }
- </script>
- <textarea name="TextArea" id="TextArea"
- rows="40" cols="80" title="Paste text here"
- wrap="off"></textarea>
- <input type="button" onclick="Jump(98)" title="Go!" value="Jump"/>
Add Comment
Please, Sign In to add comment