JS获取ewebeditor的值

<HTML> 
    
<HEAD>
    
<TITLE>eWebEditor : 标准调用示例</TITLE> 
    
<META http-equiv=Content-Type content="text/html; charset=gb2312"> 
    
<link rel='stylesheet' type='text/css' href='example.css'> 
JS获取ewebeditor的值JS获取ewebeditor的值    
<script> 
    
<!--
        
function validateForm()
JS获取ewebeditor的值JS获取ewebeditor的值        

            
//执行iframe页面中的AttachSubmit函数 
            window.frames["eWebEditor1"].AttachSubmit();
            
if(document.getElementByIdx_x("content").value != "")
JS获取ewebeditor的值JS获取ewebeditor的值            

                alert(document.getElementByIdx_x(
"content").value);
            }

            
else
JS获取ewebeditor的值JS获取ewebeditor的值            

                alert(
""); 
            }

        }

    
-->
    
</script> 
    
</HEAD> 
    
<BODY> 
    
<FORM method="post" name="myform"> 
        
<TABLE border="0" cellpadding="2" cellspacing="1"> 
            
<TR> 
                
<TD>编辑内容:</TD> 
                
<TD> 
                    
<INPUT type="hidden" name="content" > 
                    
<IFRAME ID="eWebEditor1" src="ewebeditor.htm?id=content&style=coolblue" frameborder="0" scrolling="no" width="550" height="350"></IFRAME> 
                
</TD> 
            
</TR> 
            
<TR> 
                
<TD colspan=2 align=right> 
                    
<INPUT type=button value="提交" onclick="validateForm();"> 
                    
<INPUT type=reset value="重填"> 
                    
<INPUT type=button value="查看源文件" onclick="location.replace('view-source:'+location)"> 
                
</TD> 
            
</TR> 
        
</TABLE> 
    
</FORM> 
    
</BODY> 
    
</HTML> 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值