如何使用iFrame在alertbox中隐藏网站网址 [英] how to hide website url in alertbox using iFrame

查看:71
本文介绍了如何使用iFrame在alertbox中隐藏网站网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何避开alertbox中的网址网址。



正在开发网络用c#在asp.net中的应用程序。该项目部署在托管服务器中。托管网址后分配给iframe src =http://23.24.25:35 / Registration.aspx。

在Registration.aspx页面中使用c#的警报框代码。



ScriptManager.RegisterStartupScript(Page,Page .GetType(),alert,alert('注册已成功完成。'); window.location ='Registration.aspx' ;,true);



我的问题是alerbox消息显示iframe中的喜欢

https://23.24.25:35 /说

注册已成功完成。



如何在警告框中隐藏https://23.24.25:35 / url



请帮帮我..



感谢和问候

Hi All,

How to avoid the website url in alertbox.

am developing web application in asp.net with c#. that project deploy in hosting server. after hosting the url are assign to Iframe src="http://23.24.25:35/Registration.aspx".
in Registration.aspx page having alert box code using c#.

ScriptManager.RegisterStartupScript(Page, Page.GetType(), "alert", "alert('Registration has been completed successfully.');window.location='Registration.aspx';", true);

my issue is alerbox messages show likes in Iframe
" https://23.24.25:35/ says"
Registration has been completed successfully.

how to hide the https://23.24.25:35/ url in alert box

please help me..

thanks and regards

推荐答案

据我所知,这是浏览器的一项安全功能,无法修改。



您最好使用其中一个可自定义的对话框/警告框插件,例如 http://stefangabos.ro/jquery/zebra-dialog/ [ ^ ]。
As far as I'm aware, this is a security feature of the browser which cannot be modified.

You're better off using one of the many customizable dialog/alert box plug-ins out there, such as http://stefangabos.ro/jquery/zebra-dialog/[^].


这篇关于如何使用iFrame在alertbox中隐藏网站网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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