try
<script language-"javascript">writetag()</script>
you forgot the parentheses
regards,
larry
>Sorry for the OT JS question, but I need this to work and someone my see the
>problem.
>
>I'm creating a function to write a tag with some external variables. I'm
>using document.write, but the < and > symbols in the tag are giving me a
>fit. I tried using < and >, but the browser just displays the tag
>then. It doesn't execute it.
>
>I should be able to do:
>
> function writetag () {
> document.write ("<a href="""+myurlvar+"""><img
>src="""+myimgvar+""></a>");
> }
>
>The do <script language-"javascript">writetag</script>
>
>but it don't work. Anyone have any ideas?
>
>Thanks
>
>Robert B. Harrison
>Director of Interactive services
>Austin & Williams
>
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.5.476 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007
>4:53 PM
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285235
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4