首页 > 解决方案 > 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

标签: htmljavascript

解决方案


推荐阅读