There is no one way to do this: it differs for each browser (and it's unlikely that any way you find for a particular browser will remain unchanged unless it is part of a supported API provided by the browser producer)
But...on your head be it:
Google[
^]