I have a javascript function that is currently located in an html file. And in my xcode project, I have a button related to UIWEBVIEW (linked to my local html file that has javascript).
The code is inside my html file.
<script type="text/javascript"> var now = new Date(); var day = now.getDate(); if (day % 2 == 0) alert("Today is Day 2"); else alert("Today is Day 1"); </script>
It currently displays what I want, but the only problem is that the warning header displays day.html. Anyway, I can use the xcodes UIAlert function, but with my javascript?
Here is the image:

source share