# Insert hyperlink javascript tool

**URL:** <https://forum.kirupa.com/t/insert-hyperlink-javascript-tool/156664>\
**Category:** Uncategorized\
**Created:** [July 27, 2005, 9:52am UTC](https://forum.kirupa.com/t/insert-hyperlink-javascript-tool/156664 "2005-07-27T09:52:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakob](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/yakob/32/348_2.png) [@yakob](https://forum.kirupa.com/u/yakob)\
**Post date:** [July 27, 2005, 9:52am UTC](https://forum.kirupa.com/t/insert-hyperlink-javascript-tool/156664/1 "2005-07-27T09:52:34Z")

</div>

hey out there,

i’m trying to find a simple piece of javascript similar to the ‘insert hyperlink’ button on this forum.

for example, the user is filling in a form textarea, they hit the ‘insert hyperlink’, a js window opens prompting them for link txt, then the url and then inserts this into the textarea:

```auto
<a href="http://www.kirupa.com/">the excellent kirupa.com site</a>

```

where their cursor is.

does anyone know of something like this? i’ve found it as a feature on the wysiwyg javascript editors but i just wanna put this bit in! :thumb:

watcha say?

cheers,

jake
