asked on
function hndlr(response) {
alert(response);
<!-- document.write("<p id=\"content\"</p>");
for (var i = 0; i < 1; i++) {
var item = response.items[i];
cont.document.write(item);
<!-- document.write('poi');
// in production code, item.htmlTitle should have the HTML entities escaped.
cont.getElementById("cont").innerHTML =cont.getElementById("cont").innerHTML+ "<br>" + item.htmlTitle;
}
}
<div id="cont" style="height: auto; width: 950px">
<script>
document.write('<span style="color:red;">Hello</span>');
</script>
</div>
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
If not that would solve the problem you are experiencing. There is no way to reference the file if they are not in fact linked somehow.
To get elements by Id
document.getElemetByID()