Need to change the default header message for Window.confirm() modal pop-up
I am using Pega 6.2. I have used a custom control where I am using Window.confirm() as the confirmation modal dialog. According to the requirement I need to change the default header message of window.confirm(). By default It is coming as "Message from webpage", I need to change it to "Confirmation". Is there any way to modify the default header message.
Custom control for deletion of a row in repeat grid with confirmation.
<button title="<pega:lookup property=".pyCaption" value="Delete" />" class="iconDelete" onclick="if(window.confirm('<pega:lookup property=".pyMessageLabel" value="Do you want to delete the record?" />')) { doGridAction(window.event,'DELETE'); return false;}else{return false;}" ></button>
Image,


Hi,
The window.confirm is a standard function and to change the standard behaviour you have to override the standard function.
According to the Browser implementation is shows the Header and I will suggest not to override it.
But in case Still if you want to do so then you can use below code:
Hi,
The window.confirm is a standard function and to change the standard behaviour you have to override the standard function.
According to the Browser implementation is shows the Header and I will suggest not to override it.
But in case Still if you want to do so then you can use below code: