如何调用<iframe src ='XYZ.com'id ='chatframe'> </iframe>标签的函数

时间:2019-10-23 07:34:59

标签: javascript

  1. 如何调用<iframe src='XYZ.com' id='chatframe'></iframe>标签的功能。
  2. gotoChat()存储在iframe的项目文件夹中的某个位置。
function chat() {
 var conversationWith = 'abcd';
 var conversationWithFullname = 'abcd';
 document.getElementById('chatframe').contentWindow. ** goToChat ** (conversationWith,
   conversationWithFullname);
}

gotoChat()存储在iframe的项目文件夹中的某个位置。

0 个答案:

没有答案