My main.txt file is:
Code: Select all
SET ORIENTATION PORTRAIT SET TOOLBAR OFF GET SCREEN SIZE maxx,maxy BROWSER "main" URL "lib/index.html" AT 0,0 SIZE maxx,maxy menu: SLOWDOWN goto menu
However, when I put <script>alert("hi");</script> in my HTML file, it does work.
Also, I need to mention, if I run my index.html file in a Browser such as Safari or Google Chrome, everything works fine. It is only when I try to run the code on Xcode that it does not work.