I was not aware that you could have a button to run a script when using custom web publishing. I would appreciate any additional information you can provide.