7

I would like delete the title of my popup JavaScrip but i don't know how i can and where i make 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'; ">

Tthanks for your help

kapa
  • 77,694
  • 21
  • 158
  • 175
a7mad861
  • 73
  • 1
  • 4

3 Answers3

10

You can't control the appearance of confirm() or alert() Javascript popups, because they are native controls, so their appearance is based on the OS and the browser.

What you can do:

kapa
  • 77,694
  • 21
  • 158
  • 175
4

You mean alert? You can't control/remove the title from javascript alert.

0

You can't because confirm is a javascript function which you can't change. Might want to consider using other solution like a modal window where you can add custom header/title and stuff.

tradyblix
  • 7,439
  • 3
  • 25
  • 29