How do I put a comma in this java script's output?

by 2 replies
3
Aweber passes ....domain.com/index.php?name=John which allows me to use the following code to display 'name'

Code:
<script type="text/javascript">formData.display("name")</script>
How do I add a and a so the output is:

Did You Know ...

I can add it to the HTML but if 'name' is blank the line would read

, Did You Know ...

Thanks in advance for the help!
#programming #comma #java #output #put #script

Next Topics on Trending Feed