By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,735 Members | 1,314 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,735 IT Pros & Developers. It's quick & easy.

Not working in IE6.0.2800.1106

P: n/a
I have a dilema... I have two lines of code to test if javascript will work
in an old browser of mine. For some reason, it is not working in the old
browser but works just fine in my newer version of IE6.

The only two lines are...
document.write("<a href=\"makeu5503.html\">Make a Tag</a>");
document.write("<a href=\"makeu5503.html\">Make a Tag</a>");

The calling line in the html is...
<script type="text/javascript" src = "menujs2.js">
</script>

The two document.write lines are the only lines in the js file. Does the
code look correct? Since they are the only lines of code, is there something
I am missing in the js file? From my research, I am calling it correctly.
The html page is xhtml transitional and it validates just fine. Any
suggestions?
Thanks,
Thad
Feb 23 '07 #1
Share this Question
Share on Google+
1 Reply

P: n/a
VK
On Feb 24, 2:48 am, "Thad" <tsob...@cox.netwrote:
The html page is xhtml transitional and it validates just fine. Any
suggestions?
XHTML doesn't support document.write / document.writeln methods. It is
relevant if you are serving the page with appropriate Content-Type
like application/xhtml+xml

If you are using bogus XHTML served as text/html then it's strange. It
may be needed an actual demo page demonstrating the problem.

Feb 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.