更改本机确认/警报 [英] Change the native confirm/alert

查看:136
本文介绍了更改本机确认/警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除我的popup JavaScrip的标题,但我不知道我怎么做以及我在哪里制作代码。

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

谢谢您的帮助

推荐答案

您无法控制 confirm() alert() Javascript的外观弹出窗口,因为它们是原生控件,所以它们的外观基于操作系统和浏览器。

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.

你能做什么:

  • create your own Javascript dialog
  • use a pre-written dialog like jQuery UI's dialog
  • if you don't want to include a full library (like jQuery UI) for a simple dialog, try something like javascript-simple-dialog

这篇关于更改本机确认/警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆