code: def set_alert_callback(self, callback):
          
          if callable(callable):
              self.http.alert_callback = functools.partial(callback, self)
          else:
              self.http.alert_callback = None
docs: Args:
              callback (func): called when alert popup
          
          Example of callback:
  
              def callback(session):
                  session.alert.accept()