Hi @Pendres!
Maybe I don’t understand your question properly, so I apologize if I seem obtuse. The location of the HTML file is not in the Inspector, but in the URL bar of the browser.
The exception would be an item within an iframe, in which case, the location is in the src attribute of the enclosing iframe element. I’ve highlighted that in the example below.
Or maybe you have a more complex use case than I think?
I’m moving your question from the MDN forum to the Developer Tools forum, where there are people who are much more knowledgeable than I am.