def javascript_alert(url, js_msg, abort_on):
 log.js.debug('alert: {}'.format(js_msg))
 if config.get('ui', 'modal-js-dialog'):
  raise CallSuper
 if config.get('content', 'ignore-javascript-alert'):
  return
 msg = 'From <b>{}</b>:<br/>{}'.format(html.escape(url.toDisplayString()), html.escape(js_msg))
 message.ask('Javascript alert', msg, mode=usertypes.PromptMode.alert, abort_on=abort_on)

def javascript_alert ( url , js_msg , abort_on ) : log . js . debug ( 'alert: {}' . format ( js_msg ) ) if config . get ( 'ui' , 'modal-js-dialog' ) : raise CallSuper if config . get ( 'content' , 'ignore-javascript-alert' ) : return msg = 'From <b>{}</b>:<br/>{}' . format ( html . escape ( url . toDisplayString ( ) ) , html . escape ( js_msg ) ) message . ask ( 'Javascript alert' , msg , mode = usertypes . PromptMode . alert , abort_on = abort_on )
display a javascript alert .