View Full Version : error in javascript code... wont add url?

09-13-2008, 05:28 PM
what seems to be up with my code?

<a href="javascript:void(0);" onclick="surroundText('', '', document.myform.yourpost); return false;"><img style="border: none;" src="url.gif" alt="enterurl" /></a>

when click all i get is javascript:void(0);

Philip M
09-13-2008, 05:48 PM
What is the function surroundText()?

09-13-2008, 06:04 PM
well basicly i want it to do this

like the icons above when B is slected it makes it bold lol thats what this script is.. basicly the bbcode buttons