Jump to content

Cursor location store and return help!


assasin

Recommended Posts

I need a script that will store the location of the cursor so when a button is clicked it can insert some text where the cursor was in the txt box.

Here is a [url=http://experts.about.com/q/Javascript-1520/Inserting-text-text-area.htm]link to a script[/url] I found by googleing but it only works in IE and I need mine to work in FIreFox and IE.

Basicly I am making a BB code WYSIWYG interface! so when say a smiley image is clicked the html will be inserted into the text box at the cursors last location.

Can anyone help?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.