我可以在javascript的消息框中加入一个链接吗?

MrM*_*MrM 5 javascript

我想在我的javascript messagebox函数中添加一个链接.有没有办法做到这一点?

TodayDate = new Date();
if (sender._selectedDate < new Date(TodayDate.getYear(), TodayDate.getMonth()-1, 1)) 
{
alert("Only current and previous months active.\n\nPlease visit\n
Agency ...HOMEPAGE...\nfor Archive Commissions");
sender._selectedDate = new Date();
}
Run Code Online (Sandbox Code Playgroud)

Dio*_*ane 8

不,这不受支持.您需要使用绝对定位的DIV创建自己的模态对话框.