锚标记的Javascript警报 [英] Javascript alert for anchor tag

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

问题描述

如何在javascript警告中显示锚标记?不能在FF中工作。

How to show anchor tag in javascript alert? Not working in FF.

推荐答案

不要认为你可以输入标记以在javascript警报中显示。但是你可以向用户显示一个javascript提示,即通过

Don''t think that you can enter markup to be displayed in javascript alert. however your may display a javascript prompt to the user i.e., through
confirm('do you want to go to this site www.abc.com'); 



如果用户点击是,那么您可以将用户重定向到上述网站。



问候

Pawan


and if the user clicks yes then you may redirect the user to the above site.

Regards
Pawan


这篇关于锚标记的Javascript警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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