What is href=[removed];

前端 未结 8 1023
天命终不由人
天命终不由人 2020-12-31 18:42

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 th

8条回答
  •  执念已碎
    2020-12-31 19:14

    The code:

    ..
    

    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.

提交回复
热议问题