html似乎不允许 [英] html does not seem to allow a in a
本文介绍了html似乎不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到的问题是,我在html的<form>
标记中有<form>
.
场景:
I am facing an issue where I have <form>
in a <form>
tag within the html.
Scenario:
<html>
<form>
here i have a button to subscribe... and on its click i call javascript as..\
<input type="button" value="Aanmelden" onclick="window.open('''',''budgetmailer_window'',''width=300,height=80,toolbar=0'');
budgetmailer_form.form_action.value=''1'';
var a=window.setTimeout(''document.budgetmailer_form.submit();'',500);" class="searchboxbutton" />
</form>
</html>
结果:错误:未定义'budgetmailer_form'.
Result: Error: ‘budgetmailer_form’ is not defined.
推荐答案
Coder1786写道:
Coder1786 wrote:
'budgetmailer_form'
‘budgetmailer_form’
您的html在哪里定义?我没有看到任何带有该名称的表单标签.
您正在尝试访问JavaScript中的表单标签.只需在html中命名该表单标签,您就可以访问它.
Where is it defined in your html? I don''t see any form tag with that name.
You are trying to access a form tag in your javascript. Just name that form tag in your html and you should be able to access it.
这篇关于html似乎不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文