大佬教程收集整理的这篇文章主要介绍了ReferenceError: (Function) 未在 HTMLButtonElement.onclick 中定义,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经在 HTML 页面的 <script>
部分声明了该函数,但仍然遇到“ReferenceError: onSign1 is not defined at HTMLbuttonElement.onclick”的错误。
我可以得到这方面的帮助吗?
谢谢。下面是我的代码片段。
<HTML xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Sample Form</title>
<link rel="stylesheet" type="text/CSS" href="Content/bootstrap.min.CSS" />
<link rel="stylesheet" type="text/CSS" href="Content/Font-awesome.min.CSS" />
<script src="Scripts/jquery-1.10.2.min.Js"></script>
<script src="Scripts/bootstrap.min.Js"></script>
<style>
</style>
<script>
function isValIDForm(decision) {
document.getElementByID("Signature1").value = "Sign1"
document.getElementByID("requestToClose").value = decision;
return true;
}
function OnSign1() {
document.form1.SigPlus1.tabletState = 1;
}
</script>
</head>
<body style="BACkground-color: #f2f2f2;">
<form ID="form1" name="form1" runat="server">
<asp:HIDdenFIEld ID="Signature1" runat="server"/>
<div class="container" style="wIDth: 900px; BACkground-color: white;
margin-top: 10px;
margin-bottom: 10px;
border: 1px solID #d0cece;
border-radius: 3px ">
<div style="margin: 50px; margin-bottom: 10px;">
<td height="70px;" valign="top" style="border-right: 1px solID black">
<p>Signature</p>
<OBjeCT ID="SigPlus1" style="left: 0px; WIDTH: 250px; top: 0px; HEIGHT: 70px" height="75"
classID="clsID:69A40DA3-4D42-11D0-86B0-0000C025864A" name="SigPlus1">
<ParaM name="_Version" VALUE="131095">
<ParaM name="_ExtentX" VALUE="8467">
<ParaM name="_ExtentY" VALUE="4763">
<ParaM name="_StockProps" VALUE="9">
</OBjeCT>
<p>
<button type="button" ID="Sign1Btn" onclick="OnSign1()" name="Sign1Btn" >Click to Sign <i class="fa fa-pencil" aria-hIDden="true"></i></button>
<button onclick="OnSign1Clear()" type="button" value="Clear">Clear</button>
</p>
</td>
</div>
</div>
</form>
</body>
</HTML>
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的ReferenceError: (Function) 未在 HTMLButtonElement.onclick 中定义全部内容,希望文章能够帮你解决ReferenceError: (Function) 未在 HTMLButtonElement.onclick 中定义所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。