views:

218

answers:

1

The "search" (magnifying glass) on the top-right hand corner of firebug does not search inside javascript blocks, so if I have, for example, this:

<script type="text/javascript">

    var fooBar = "baz"

</script>

somewhere in a page, I can't find where "fooBar" is located. Is there any way to do it?

+2  A: 

If you switch to the script tab, it will search inside script tags. Just make sure the HTML file is selected in the file drop-down (it should be by default).

If you don't need to use Firebug specifically, you can also search in the View Source window.

Matthew Crumley
Great! The view source does not work for me, because the page is totally AJAXy, but the search on the Script tab works.
Zorzella