Change inline confirmation / alert

I would like to remove the header of my JavaScrip popup, but I don't know how I can and where I am making the code.

This is my code:

<a href="javascript:;" onclick="if(confirm('voulez-vous vraiment supprimer cette station?')) window.location.href='Supprimer_Station.php?id_sta=<?php echo $valeur['ssiphone_idstation']; ?>&act=supprimer'; "> 

thanks for your help

+6
source share
3 answers

You cannot control the appearance of the confirm() or alert() Javascript pop-ups because they are native controls, so their appearance is based on the OS and browser.

What can you do:

+10
source

Do you mean the alert? You cannot control / remove the header from the javascript alert.

+4
source

You cannot, because confirm is a javascript function that you cannot change. You might want to use another solution, for example, a modal window, where you can add your own title / header and more.

0
source

Source: https://habr.com/ru/post/886786/


All Articles