Hi there,
I have a really curious error that I can't quite figure out, the basics are I have web page with some ASP scripting to display database information in textboxes, above one of these boxes I have buttons that allow the user to insert HTML code to make text <B>Bold</b> <I>Italic</I> and also to add a URL and email link.
The Bold and italic buttons work they just simply write the code to the text box, but the URL and Email buttons are supposed to display a prompt box which allows the user write their URL or Email and then this gets inserted into the textbox inside href or mailto tags.
My problem starts here, simply when these two buttons are used, instead of the above happening, the text for the prompt gets written in the status bar like I had written..
window.status=Please enter email address
Here's my code for the prompt though
onClick=prompt("Please enter email address"
, "mailto:"
;
can anyone help me?
I have a really curious error that I can't quite figure out, the basics are I have web page with some ASP scripting to display database information in textboxes, above one of these boxes I have buttons that allow the user to insert HTML code to make text <B>Bold</b> <I>Italic</I> and also to add a URL and email link.
The Bold and italic buttons work they just simply write the code to the text box, but the URL and Email buttons are supposed to display a prompt box which allows the user write their URL or Email and then this gets inserted into the textbox inside href or mailto tags.
My problem starts here, simply when these two buttons are used, instead of the above happening, the text for the prompt gets written in the status bar like I had written..
window.status=Please enter email address
Here's my code for the prompt though
onClick=prompt("Please enter email address"
can anyone help me?