Implement variable in node confirmation popup
It worked!
$text = &quot;Really save?&quot;;
$form['actions']['submit']['#attributes']['onclick'] = 'if(!confirm(&quot;' . $text .'&quot;)){return false;}';