New to the forum so please be gentle. Maybe this has been asked/answered but I've searched and don't have a clue.
In Safari – with a "document.write" command, the text is only written when enclosed in tags, any tags apparently; for example...
This works in Safari:
<script type="text/javascript">
function doit() {
document.write('<html>hello</html>');
}
</script>
(view at http://andexis.com/does.html)
This does not work in Safari but does work in I.E., Firefox and Opera:
<script type="text/javascript">
function doit() {
document.write('hello');
}
</script>
(view at http://andexis.com/doesnot.html)
So, please, embarrass me. Tell me what I've done wrong. Or it just a bug in Safari?
|