As far as I know,
I tried this code. It worked on Firefox and Konqueror.
a.htm
Code:
<head>
<script type="text/javascript">
var el = document.createElement("link");
el.setAttribute("rel","stylesheet");
el.setAttribute("href","a.css");
var h =document.getElementsByTagName("head")[0];
h.appendChild(el);
alert(h.innerHTML);
</script>
</head>
<body>
<div class="theTimeThroughAges">The Time Through Ages. <br>In the Name of Allah, Most Gracious, Most Merciful. <br> 1. By the Time, <br> 2. Verily Man is in loss, <br> 3. Except such as have Faith, and do righteous deeds, and (join together) in the mutual enjoining of Truth, and of Patience and Constancy.</div>
a.css
Code:
.theTimeThroughAges { width: 350px; height: 150px; background-color: aqua; font-size: 12px; color: blue; padding: 35px; border: 3px solid turquoise;}
Bookmarks