can someone please tell me why this is working? I figured it out by accident, and have no idea what the heck is going on here? This works in chrome, IE, and firefox; can someone tell me why? If you remove from the body the
element from the second CC or the first CC then the whole thing doesn't work in IE, what is so special about that "." and that "ghost" CC that does nothing? I am very confused on this, any help would be appreciated.
im using win vista/xampp/ie7, chrome, firefox; (for those who migt try replicating this oddity?)
my file is as follows:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===================================================================================
this is the contents of hed.php that is being called here:
<?php
$msgr = " document.write('
some title
.
var newcontent = document.createElement('div');
var scr = document.getElementById('syndication_no');
newcontent.id = 'outside_content_container';
newcontent.appendChild(document.createTextNode('Here is some syndicated content.'));
scr.parentNode.insertBefore(newcontent, scr);
// simply a confirmation that the div was constructed
if(newcontent.id = 'outside_content_container')
alert('The Div with the Id: ' + newcontent.id + ', has been built!');