Iframe does not work with android inbuild browser, how to solve the problem?

I am working on a cross-platform mobile application using a problem with the phone (html, javascript), the selected item related to the image not displayed in the iframe, and this image displays another page, see below code

<html> <head> <script> function onchangeevent(mySelect) { PageIndex2=mySelect.selectedIndex; { if ( mySelect.options[PageIndex2].value != "none" ) { frames['iframe2'].location.href = mySelect.options[PageIndex2].value; } } } </script> </head> <body> <form name="form"> <p><select NAME="selectimage" SIZE="1" onChange="onchangeevent(this.form.selectimage)"> <option VALUE="none" SELECTED>Select a page and go</option> <option VALUE="ic_launcher.png">one</option> <option VALUE="icon.png">two</option> </select> </p> <p> <iframe src="" name="iframe2" height="100%" width="100%">You need a Frames Capable browser to view this content.</iframe> </p> </form> </body> </html> 

iframe tag not working in android inbuild browser how to solve the problem? Report all alternate tags supported by all browsers. enter image description hereenter image description here

+2
android html browser cordova
source share
2 answers

Android browser supports iframe . I suspect this is one of the other attributes that might cause the problem. I know that the scroll attribute can cause the iframe not to appear. Try a simpler version of iframe with just href and width and height and see if it appears.

Select one

Select two

+1
source share

In appearance, the i-frame works, most likely, select a script, try using radio buttons, see if this works.

For some reason, several types of browsers are picky about the form of choice.

-one
source share

All Articles