{"comment":{"created_at":"2011-10-20T04:58:03Z","body":"@apemberton: Sorry, I haven't got to work on it because I got side tracked and wasn't sure how to write test cases for it.","updated_at":"2011-10-20T04:58:03Z","url":"https://api.github.com/repos/phonegap/phonegap-iphone/issues/comments/2464755","id":2464755,"user":{"avatar_url":"https://secure.gravatar.com/avatar/17e9691cf5bb3fbc72044855730c37a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"17e9691cf5bb3fbc72044855730c37a2","url":"https://api.github.com/users/buddydvd","id":159198,"login":"buddydvd"}},"action":"created","issue":{"number":270,"created_at":"2011-09-01T23:18:25Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"**Summary:** You can no longer redirect to a different page by updating `document.location.href`.\r\n\r\n**To reproduce:** Add `www.google.com` to `PhoneGap.plist`'s `ExternalHosts` array. Add an anchor link to `index.html` with its `onclick` handler set to use JavaScript to redirect the webView to`http://www.google.com`.\r\n\r\n    <a href=\"#\" onclick=\"document.location.href='http://www.google.com/'; return false;\">click me</a>\r\n\r\n**Expected:** Clicking the anchor link will load `http://www.google.com` in the embedded webView.\r\n**Actual:** Clicking the anchor link loads `http://www.google.com` in Mobile Safari.\r\n\r\nFor more info, see: https://github.com/phonegap/phonegap-iphone/commit/9eaeceb2048427f2349cbd862af2507bddf08f77","comments":9,"title":"Unable to use JavaScript to redirect to a different page.","updated_at":"2011-10-20T04:58:03Z","url":"https://api.github.com/repos/phonegap/phonegap-iphone/issues/270","id":1546964,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/0b889317550ddbf2685447f73a3156ee?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0b889317550ddbf2685447f73a3156ee","url":"https://api.github.com/users/shazron","id":36107,"login":"shazron"},"milestone":{"number":6,"created_at":"2011-06-24T17:13:47Z","due_on":null,"title":"future","creator":{"avatar_url":"https://secure.gravatar.com/avatar/82d945860586e7591638b1385f18c4bd?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"82d945860586e7591638b1385f18c4bd","url":"https://api.github.com/users/filmaj","id":52645,"login":"filmaj"},"url":"https://api.github.com/repos/phonegap/phonegap-iphone/milestones/6","open_issues":14,"closed_issues":7,"description":"","state":"open"},"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/17e9691cf5bb3fbc72044855730c37a2?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"17e9691cf5bb3fbc72044855730c37a2","url":"https://api.github.com/users/buddydvd","id":159198,"login":"buddydvd"},"html_url":"https://github.com/phonegap/phonegap-iphone/issues/270","labels":[{"name":"future","url":"https://api.github.com/repos/phonegap/phonegap-iphone/labels/future","color":"02d7e1"}],"state":"open"},"legacy":{"issue_id":1546964,"comment_id":2464755}}