Communication between Sketchup and their webdialogs is done by using window.location = skp:action@value
to trigger a callback on the Sketchup. While doing so, it doesn't load another page, which this question uses.
Is there a way to extend window.location to log changes to the console when it doesn't load a new page?