I want to create a button for IMG URL so when you click it, a prompt comes up and asks, whats the url for the image.
I got that far, but now my problem is how to get it into my textarea!
http://bigdog.csscob...forum/thread/2/
Scroll down on that page and you will see the button and the textarea.
my code so far is
function imageprompt()
{
var imageurl=prompt("Enter Image URL","http://");
if (imageurl!=null && imageurl!="")
{
document.getElementByName("post").value="[img]" + imageurl + "[/img]";
}
}
That doesn't work for some reason. Anyone wish to help will be great.
