To enable javascript in Netscape 4, pick preferences from the edit menu, and then click on Advanced.
with Netscape 3, you choose Network Preferences from the Options Menu, and then choose the Languages tab.
In each case there should be a checkbox labelled Javascript, which ought to be ticked.