什么是href = javascript:; [英] What is href=javascript:;

查看:56
本文介绍了什么是href = javascript:;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我正在通过的代码中有一个链接有href = javascript:;在code.when点击它打开一个灯箱,显示一些msg与关闭button.ow它完成。我认为这使用dojo

in a code which i am goin through there is a link has href=javascript:; in code.when it is clicked it opens a lightbox to show some msg with close button.how is it done.I think this uses dojo

推荐答案

代码:

<a href="javascript:;">..</a>

实际上什么都不做。通常,这个Nothing链接允许一些javascript代码使用onclick事件。 onclick事件触发可能来自django或jquery或任何地方的窗口。

will actually do nothing. Generally this Nothing link allows some javascript code to use the onclick event instead. The onclick event triggers the window which may be from django or jquery or wherever.

这篇关于什么是href = javascript:;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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