I would like a bookmarklet that when I click on it, it goes to the JSON and grabs the "temp" from there, and puts it into an alert to tell me what the weather It with a click of a button. Is there a way to do it? Or do I have to use a different API?
This is what I've so far:
function insertReply(content) {
document.getElementById('output').innerHTML = content;
}
var script = document.createElement('script');
script.src = 'http://api.openweathermap.org/data/2.5/find?q=australia,wa&mode=json';
document.body.appendChild(script);