html - Adding a Windows Popup at load with custom button
问题描述
We have upgraded and application and want to add the following at the load of previous application
Giving users two options where they can click one button to go to new and other
<body>
<script type="text/javascript">
if (window.confirm('STOP AND READ CAREFULLY Application has been upgraded to New Version click "OK" and you would be directed to New URL Click Cancel to go to Old Version'))
{window.location.href='https://www.google.com/?client=safari';};
</script>
Right now it's just giving my OK and CANCEL button i would like the ability to format the text "STOP AND READ CAREFULLY Application has been upgraded to New Version click "OK" and you would be directed to New URL Click Cancel to go to Old Version" in multi line and also if possible rename OK and CANCEL to NEW or OLD
Regards
解决方案
推荐阅读
- react-native - 反应映射依赖问题
- postgresql - Postgresql 无法启动。重新启动正在重置授予 /var/run/postgresql/ 的权限
- javascript - mobx 中的 @observable 和 @observable.ref 修饰符有什么区别?
- go - 结构嵌入:不能引用未导出的名称 os.fileStat
- android - 在回收站视图中投射异常?
- node.js - 找不到模块“猫鼬”,即使它存在
- java - 无法将 JDBC-Hikari 连接到我的 Micronaut 应用程序
- pyspark - spark-submit 不选择项目结构的模块和子模块
- r - 在遍历列时校正密度图
- sql - IS_ROLEMEMBER 在 SQL Server 2012 或 2008R2 中是否可用