This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The Javascript helpfully marks occurrences of the token under the caret. However, when the caret leaves the token, the occurrences stay marked. There is no way to turn this behavior off. The Java editor has a "Keep Marks" setting that is configurable. This setting should exist for Javascript as well.