M
Mark
<script>
var
kw,dsc,w=window,d=document,e=encodeURIComponent,m=d.getElementsByTagName("meta");
for(var i in m) {
var n=m.name.toLowerCase(),c=m.content;
if(n=="keywords") kw=c;
if(n=="description") dsc=c;
d.write(kw+"<br/>");
}
d.write("hello?");
</script>
The keywords print as expected, but "hello" never gets printed...seems
like nothing gets executed after that last }, and I just can't figure
out why. Help?
var
kw,dsc,w=window,d=document,e=encodeURIComponent,m=d.getElementsByTagName("meta");
for(var i in m) {
var n=m.name.toLowerCase(),c=m.content;
if(n=="keywords") kw=c;
if(n=="description") dsc=c;
d.write(kw+"<br/>");
}
d.write("hello?");
</script>
The keywords print as expected, but "hello" never gets printed...seems
like nothing gets executed after that last }, and I just can't figure
out why. Help?