-1

When using the confirm dialog box in Javascript, the first line is "<URL name> says:" then it is followed by the string specified in the js call.

Is there a way to change that first line?

Brett Slocum
  • 390
  • 1
  • 5
  • 21

2 Answers2

1

The confirm box, just like the alert box, is a system object, and not subject to CSS. To do this style of thing you would need to create an HTML element and mimic the confirm() functionality.

0

What you want is not possible, the url in the confirm window is not customizable. As a solution you could create your own modal box and style it as desired.

BrianDiesel
  • 168
  • 5