formatage de chaine
Posté : 26 janv. 2007, 13:47
Bonjour
je suis plutot novice en js et j'ai ce problème : j'ai créé un bouton pour afficher du code dans une texteaera, (function bbcode). mon problème est que je n'arrive pas a formater correctement le texte qui doit être inseré :
<a href="#" onClick="window.open('http://www.site.com/dossier/infos.htm', ... 'toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=600, height=600');return(false)"><img border="0" src="http://www.site.com/site.gif" width="17" height="17"></a>
merci
je suis plutot novice en js et j'ai ce problème : j'ai créé un bouton pour afficher du code dans une texteaera, (function bbcode). mon problème est que je n'arrive pas a formater correctement le texte qui doit être inseré :
<a href="#" onClick="window.open('http://www.site.com/dossier/infos.htm', ... 'toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=0, copyhistory=0, menuBar=0, width=600, height=600');return(false)"><img border="0" src="http://www.site.com/site.gif" width="17" height="17"></a>
merci