现在项目中用到“HtmlEditor”这个文本编辑器,想让用户点提交时判断用户有没有输入内容出了点问题。
在页面上的主要代码<textarea name="content" style="display: none;" ></textarea>
<iframe ID="Editor" name="Editor" src="HtmlEditor/index.html?ID=content" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:238px;width:500px"></iframe>
我现在问题就是不知道怎么写这个JavaScript代码来判断用户到底有没有输入内容。页面嵌一个子框架(文本编辑器),子框架页面里面还嵌了一个子框架(用于输入内容的页面).请教大家我该怎么写代码判断用户有没有输入值呢?