WebInspector.getInspectedUri

Get the URI that is currently being inspected.

This can be null if nothing has been loaded yet in the inspected view, if the inspector has been closed or when inspected view was loaded from a HTML string instead of a URI.

class WebInspector
string
getInspectedUri
()

Return Value

Type: string

the URI that is currently being inspected or null