This does not seem to work:
Yii::app()->clientScript->registerScript('user-manage', "
$('#remove-user-button').click(function(){
return confirm('Note this will delete the user.\nPlease confirm you want to proceed with this.');
});
", CClientScript::POS_READY);
I get a JS error in console for this, it seems like it is not outputting the newline character.
If I put this code in a normal JS file it works fine.