0

This is a javascript function through which i call iframe. But what i want is before i call an iframe i refresh or call or update the contents of a div

<script type="text/javascript">
        function refreshConversatio() {

            document.getElementById('iframeDisplayMessage').src = 'frmMessageDisplay.aspx?id=' + document.getElementById('val').value+'&id1=' + document.getElementById('HiddenTime').value,
            document.getElementById('iframe1').src = 'frmChatRequest.aspx',
            document.getElementById('iframe2').src = 'PendingChat.aspx';


        }

    </script>

This is the div

<div id="divItem">
     <input type="hidden" runat="server" id="val"  name="val" />
      <input type="hidden" runat="server" id="HiddenTime" name="HiddenTime" />  
</div>

and this is the function

<script type="text/javascript">
        setInterval(function () { refreshConversatio(); }, 3000)


    </script>
4

0 回答 0