链接在警报框javascript [英] link in alert boxes javascript

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

问题描述

我有一个简单的问题。我有以下代码:

I have a simple question. I have the following code:

alert("Are you sure you want to add: \n" + redirURL + "?");

变量redirURL是一个实际的工作网址。我希望它是'可点击'

the variable redirURL is an actual working url. I would like it to be 'clickable'

提前谢谢

推荐答案

您只能在提醒功能中显示文字。如果你想放一个url,你可以使用jquery的对话框功能。以下是一些代码示例: http://jqueryui.com/dialog/#default

You can only display text in the alert function. If you want to put an url, you can do it by using jquery's dialog function. Here are some code examples: http://jqueryui.com/dialog/#default

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

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