Client-side scripting - Post ID 233403

User 1323382 Photo


Registered User
2 posts

Using the CoffeeCup HTML Editor I have tried to add a block of JavaScript code to an html file by inserting the line

<script type='text/javascript' src='BElib.txt'></script>

in the head section but it does not work. Any suggestions?

Peter
User 434929 Photo


Ambassador
938 posts

This is correct way to insert JavaScript ducoment
<script src="folder/myscript.js"></script>

You are inserting text as your extension is BElib.txt

<script type='text/javascript' src='BElib.txt'></script>
Guys at coffeecup are awesometacular.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.