code: func (c *Page) HandleJavaScriptDialog(accept bool, promptText string) (*gcdmessage.ChromeResponse, error) {
  	var v PageHandleJavaScriptDialogParams
  	v.Accept = accept
  	v.PromptText = promptText
  	return c.HandleJavaScriptDialogWithParams(&v)
  }
docs: // HandleJavaScriptDialog - Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
  // accept - Whether to accept or dismiss the dialog.
  // promptText - The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog.