We can use gFindBar.toggleHighlight(true) before to highlight found result in JS. After firefox 25 beta, findbar structure changed. This method is still belongs to gFindBar, however, through XBL binding.

The method is now defined in "omni.ja\chrome\toolkit\content\global\bindings\findbar.xml" or chrome://global/content/bindings/findbar.xml#findbar.

Then it's no longer listed in accessible javascript object list. How can I use it in chrome environment? Is there anyway to highlight found result with javascript?

有帮助吗?

解决方案

It doesn't matter that it's not listed (as a method of the XULElement, since it is not), you can continue using it as you did until now.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top