Why is javascript not executing on a web page when accessed via iOS Twitter browser?

I am completely stumped and I’m sure this was working before.

I have a simple web page with the word “hello” in a div which does two things onload:

1) alert “2”

2) change the text of the div to “bye”

All vanilla Javascript, no libraries.

This works fine on the Chrome, IE, FF, Safari (as you’d expect). If I hit a link in the iOS Twitter app (latest version) to this web page neither of those two things happen. It seems to me that the Javascript is not being executed at all but how can this be? Has anyone else experienced this?

Source: cross-browser

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.