Include a .js file From Notes

I have a .js file that contains common functions.  I want to include this file in multiple forms so I can use the functions with javascript.  Is this possible to do with notes and if so can you give me an example?

Thanks.
bsmith11Asked:
Who is Participating?
 
ghassan99Connect With a Mentor Commented:
If you are using R4, create a field called '$$HTMLHead' on the form and make it hidden, with the value:
"<SCRIPT SRC = \"/library.js\"></SCRIPT>"
In R5 add the same value but to the 'HTML Head Content' property of the form.

-Gus
0
 
bsmith11Author Commented:
Can I specify a path with this library name also?
0
 
ghassan99Commented:
yes the path could be relative or full

-Gus
0
 
bsmith11Author Commented:
Thanks for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.