How would i go about... form related

Discussion in 'JavaScript' started by Grit., Jun 11, 2009.

  1. #1
    You know when you're on forums etc, and you can use the quick input buttons, e.g. click URL, you get a javascript promp, and you enter the URL and the title you want, and then it inputs the information into your text box, how could i create a similar kind of input?

    I have to create a site whereby a user can click a button, to be provided with a prompt box for entering the URL of an image, and then it enters the correct <IMG> code, for inserting the image, into the text box.

    All help is greatly appreciated, and i'd also like to point out, data already in the text box needs to be kept and not overwritten.

    Thanks in advance
     
    Grit., Jun 11, 2009 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Posting the code for your query.

    Hope this helps.
     
    Unni krishnan, Jun 11, 2009 IP
    Grit. likes this.
  3. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #3
    That's perfect. Thank you very much for you're help :)
     
    Grit., Jun 12, 2009 IP