Where add print fromat like html file

what is the right path to put it and add it in my client script to determind the right form based conditions


istead of write code in js direct i want to write it in file and call that file.html