如何在不同的浏览器中制作弹出框? [英] how to make popup box in different browsers?

查看:53
本文介绍了如何在不同的浏览器中制作弹出框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中我需要弹出窗口,而客户端点击保存按钮...我的代码是

in my application i need to get popup while client click save button...my code is

ScriptManager.RegisterStartupScript(this, this.GetType(), "script", "if (!AlertMessageBox ('Data Saved Successfully')){window.location.href='sysusermst.aspx?sm=" + osmId + "';}", true);



它在mozilla中运行良好,但剩下的其他浏览器我没有弹出...我不知道为什么?


it works fine in mozilla but remaining other browsers i did not get popup..i dont know why?

推荐答案

正如Nathan所提到的那样,这不是一个内置的函数JavaScript函数,所以如果你没有一个名为的函数,它将无法工作。



你可以只提醒()或者你可以使用jquery ui对话框,如果你想要更好看的东西。
As Nathan mentioned, that is not a built-in function JavaScript function so if you do not have a function named that it will not work.

You could just alert() or you could use jquery ui dialog as well if you want something nicer looking.


这篇关于如何在不同的浏览器中制作弹出框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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