Here is my code:
<cfscript language="javascript">
OpenText(document.getElementById(#url.id#));
</cfscript>
Here is the error:
Invalid token l found on line 731 at column 19.
The CFML compiler was processing:
A cfscript tag beginning on line 731, column 10.
Why?
<cfscript>doesn’t take a language attribute. You are probably just wanting to do:Incidentally, the language attribute is also deprecated on the
<script>tag in HTML 4, and you should use type instead (as in my example). In HTML5 you can just do<script>without either language or type attributes.