我想在网站上运行以下代码:
document.getElementById("FileLeafRef_8553196d-ec8d-4564-9861-3dbe931050c8_$onetidIOFile").value = "test";
问题是我必须选择框架“EditForm.aspx”:
在 IE 中,我可以通过手动单击来轻松选择 Frame,但我只想在 JavaScript 中进行,而不需要手动选择。
我试过了
parent.frame[x]
但我认为这是错误的道路......