<script language="JavaScript" for="aax_1" event="onauthnetout">parent.location="index.php";</script>上面这段js代码中 event="onauthnetout"  这句是做什么用的,怎么解释?

解决方案 »

  1.   

    楼主确定这个JavaScript没有写错吗
      

  2.   

    你这个属性我没用过 这样的写法意思是 当触发onauthnetout事件的时候执行script里的方法
      

  3.   

    楼主这个应该是调用了OCX,
    页面上应该有用<object />标签注册了OCX控件
    当后台的ocx发生了onauthnetout 事件
    就执行parent.location="index.php"; 
      

  4.   


     没有写错,是这样的。
     好像是调用了ocx控件里的事件。
      

  5.   


     没有写错,这个属性应该是和ocx控件有关
      

  6.   

    这个写法是非常正确的,当aax_1触发onauthnetout事件时就会调用这个Script段中的代码了