OnBrowsewerevent()试图内省Iframe的内容,以获得错误代码或成功。private native String getMessage()/*-{
var e = document.getElementById('my_iframe');var html = e.contentWindow.
使用prototype js库,我可以使用$(elementID)访问元素。我可以通过以下方式访问Iframe中的元素
$('iframeID').contentWindow.document.getElementById('ID of element inside Iframe我想对我的Iframe使用相同的美元方法来访问Iframe中的元素。有什么办法吗?
编辑:我发现问题与在没有特定API或类似的API的情况下无法访问iframe中的元素有关。这个问题已经解决了。var div = document.getElementById("PlaceToPutTable");iframe.contentWindow.document.getElementsByTagName("a")[1];
我尝试过使用