40 Answers
New AnswerI wanted to embed the webpage such that when I click the material icon, the webpage shows up.But this is what's showing up ππ© Help plz ... https://code.sololearn.com/WlEcmQd8695J/?ref=app
7/20/2020 8:18:43 AM
π° Just_!n π°40 Answers
New Answerπ° Justin π° you can't embed an iframe inside material icons because the text inside defines what icon is to be used. You can try like this π https://code.sololearn.com/WlLh097GakC6/?ref=app if you click on the icon the web page will be displayed in the iframe. Note: not all websites are allowed to be embeded in an iframe
β¨Tuktuk. π... You can report here Go to this thread https://www.sololearn.com/Discuss/524028/?ref=app
Some webpages cant be embedded as iframes. Have you tried different webpages to test this?
check this. I think that's what you are trying to do https://code.sololearn.com/WlLh097GakC6/?ref=app
Dragonxiv And how to embed it in the material icon . I placed it in btwn the icon tag but the icon disappeared π΅π±
κ§ΰΌRishabhΰΌκ§ who knows. At times people find it fun to do such things.
π° Justin π° An international group came here just to downvote us. We must be quite important people.
You cant embed this one in a iframe due to cross-origin policy. This policy forbids any other site to use the host(here w3cschools.com) site's icons, images, etc. Let me look for a solution
π° Justin π° check the below code. I have edited it so that when you click on the launch icon the material icons web page will be displayed in the iframe. https://code.sololearn.com/WlLh097GakC6/?ref=app
viknesh vikky Can only see the webpage but I want the material icon to be displayed and when I click the webpage should open. But it's not π’
π° Justin π° you want the material icon to be inside the iframe and then when you click on it, the web page should load. Is that what you are trying to do?
π° Justin π° Just hide the iframe initially then show it when an app icon is clicked. since the icon is inside the <a> tag which targets the iframe to open the link, the website will be loaded automatically. when you press home or back button hide the iframe. That simple π. Good luck π for you Android phone. Hope we see that working soon π
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message