Change method of preventing default browser action (when clicking a toolbar button).