Access the Internet from code studio


#1

Is it possible to code a button to go to a website? One of my students wants to do that in his app.


#2

Hi Myra

Right now there is not really a good way to do this in App Lab. Currently the window.location command in JS is locked in App Lab for security reasons. The best you can do for linking to something externally is to use something like:

write( <‘a’ href =‘http://espn.com’>ESPN</‘a’>) added the ‘’ around the a to keep it from turning it into a link

Hopefully down the road we can look into something to make this easier.

  • Dani