{"action":"opened","issue":{"url":"https://api.github.com/repos/increpare/terrylibtodo/issues/79","labels_url":"https://api.github.com/repos/increpare/terrylibtodo/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/increpare/terrylibtodo/issues/79/comments","events_url":"https://api.github.com/repos/increpare/terrylibtodo/issues/79/events","html_url":"https://github.com/increpare/terrylibtodo/issues/79","id":103852139,"number":79,"title":"add text prompt function","user":{"login":"increpare","id":465632,"avatar_url":"https://avatars.githubusercontent.com/u/465632?v=3","gravatar_id":"","url":"https://api.github.com/users/increpare","html_url":"https://github.com/increpare","followers_url":"https://api.github.com/users/increpare/followers","following_url":"https://api.github.com/users/increpare/following{/other_user}","gists_url":"https://api.github.com/users/increpare/gists{/gist_id}","starred_url":"https://api.github.com/users/increpare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/increpare/subscriptions","organizations_url":"https://api.github.com/users/increpare/orgs","repos_url":"https://api.github.com/users/increpare/repos","events_url":"https://api.github.com/users/increpare/events{/privacy}","received_events_url":"https://api.github.com/users/increpare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-29T13:30:52Z","updated_at":"2015-08-29T13:30:52Z","closed_at":null,"body":"here's how you do it in javascript - looks like you can use externalinterface directly here:\r\n\r\nwindow.prompt(\"sometext\",\"defaultText\");\r\nThe window.prompt() method can be written without the window prefix.\r\n\r\nExample\r\n\r\nvar person = prompt(\"Please enter your name\", \"Harry Potter\");\r\nif (person != null) {\r\n    document.getElementById(\"demo\").innerHTML =\r\n    \"Hello \" + person + \"! How are you today?\";\r\n}"}}