B Bradley James Marks Member Licensed User Longtime User Aug 29, 2013 #1 All, I have just started to experiment with viewing webpages via Basic4Android. I have a small test application that has a button to open up a URL. This works nicely with the code as shown here. ‘~~~~~~~~~~~~~~~~~ Dim WWW AsWebView WWW.Initialize("") Activity.AddView(WWW,0,180,75%x,50%y) WWW.LoadUrl("http://webpages.ABC.net/AndroidTest.html") ‘~~~~~~~~~~~~~~~~~ I would now like to use another button to clear the WebView from the screen. I can’t seem to figure out how to do this. Thanks, Brad
All, I have just started to experiment with viewing webpages via Basic4Android. I have a small test application that has a button to open up a URL. This works nicely with the code as shown here. ‘~~~~~~~~~~~~~~~~~ Dim WWW AsWebView WWW.Initialize("") Activity.AddView(WWW,0,180,75%x,50%y) WWW.LoadUrl("http://webpages.ABC.net/AndroidTest.html") ‘~~~~~~~~~~~~~~~~~ I would now like to use another button to clear the WebView from the screen. I can’t seem to figure out how to do this. Thanks, Brad
NJDude Expert Licensed User Longtime User Aug 29, 2013 #2 You could load an empty document: Code: Copy WWW.LoadHTML("<html></html>") By the way, to enter code, enclose it using the [code] ... [/code] tags. Upvote 0
You could load an empty document: Code: Copy WWW.LoadHTML("<html></html>") By the way, to enter code, enclose it using the [code] ... [/code] tags.
warwound Expert Licensed User Longtime User Aug 29, 2013 #3 Or is WWW.RemoveView what you want? Martin. Upvote 0