[英]How can I generate an alert/pop-up saying avoid clicking back button of browser before user clicks it
由于我在应用程序中禁用了后退按钮,因此我希望用户不要在所有浏览器中单击它。
$('.button').hover(function(){
$('。button')。hover(function(){
alert("This button is not working");
alert(“此按钮不起作用”);
});
});
but you might like to just change the HREF of it, to href="#"
, after clicking nothing will happen. 但是您可能只想单击它,然后便将其HREF更改为
href="#"
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.