I want to truncate the product description and only display the first 40 characters or so. i have ready many threads and have come up with the code below. This only works with plain text in the description. Once I put in the HTML tags for example: !!< Product description goes here. >!!. This script will not write the description.
Any suggestions on what I am forgettting or doing wrong. i am using developer 7.
Code:
<script language="JavaScript" type="text/javascript"> <!-- function writeJS(){ var str='NETQUOTEVAR:PRODUCTDESCRIPTION'; document.write(str.substring(0,40) + '...'); } writeJS(); //--> </script>
Comment