My Html file have one iframe just like below

<iframe style="" id="msloginFrame"
src="authorize_files/index.htm" hidefocus="true" width="350"
frameborder="0" height="153" scrolling="no"></iframe>

I want to use javascript control this iframe.
My code like this

mWebView = (WebView) findViewById(R.id.webview01);
mWebView.setAlwaysDrawnWithCacheEnabled(false);
mWebView.setAnimationCacheEnabled(false);
mWebView.getSettings().setJavaScriptEnabled(true);

mWebView.loadUrl("http://index.html";);
mWebView.loadUrl("javascript:document.getElementById('msloginFrame').contentDocument;";

I want to get document object of ifram but it still alert null.
How can i get document of iframe use javascript?

many thanks in advance
Frank

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to