Javascript in a form/view?

Javascript in a form/view?

Does anyone know if you can add javascript in a form or view? I'd like to put a "back" button or link on a row/record using the following script:

<SCRIPT TYPE="text/javascript">
<!--
var gb = new backlink();
gb.type = "button";
gb.write();
//-->
</SCRIPT>

Is there a way to accomplish this? I was thinking that I'd add a URL field to the form and then display that on the view, but that doesn't seem to work.