if statment

if statment

hello again

i want to make a confirmation, something like this:

if (confirm('האם אתה בטוח שברצונך ל' + msgTITLE + '?'))
{
   aler(ההודעה נמחקה);
}


the confirm does pops when i am not placing it inside an IF.
if its inside the IF, than nothing happens.

why?