Client-side document click handler supporrts relative href.