gpt4 book ai didi

javascript - 我的网站搜索表单的输入字段不接受输入

转载 作者:太空宇宙 更新时间:2023-11-04 00:08:12 25 4
gpt4 key购买 nike

我的网站是http://1stbirthdaypartytheme.com/我的网站搜索表单的输入字段不接受 FireFox 17.01 中的输入。搜索在 Chrome 和 I.E 中正常工作。换句话说,如果你在 Firefox 中打开我的网站,在标题的右上角有一个搜索字段,就在我的社交联系按钮下方。如果将光标放在输入框中并键入任何内容,则不会发生任何事情。当您单击放大镜时,您将返回主页。我该怎么做,或者我需要做什么来解决这个问题?

最佳答案

当我在 DOM Inspector 中覆盖这个位时,它开始在 Firefox 中工作:

<SCRIPT TYPE="text/javascript"> 
<!--
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
// -->
</SCRIPT>

也就是说,在您的网页上禁用“右键单击”只会让调试变得更加困难。不要禁用“右键单击”,这样做没有意义:

How do I disable right click on my web page?

http://www.sitepoint.com/dont-disable-right-click/

关于javascript - 我的网站搜索表单的输入字段不接受输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14093650/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com