I'm trying to dynamiclly build my web pages for ie and netscape users so that the page is constructed differently for each at the time the page loads, depending on the browser, so far, this is what I'm doing ....
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Browser Check ...</title>
<link rel="stylesheet" href="styles/url.css">
var uagent;uagent = navigator.userAgent;
"MSIE" && uagent.charAt(30) > 2)
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://fibdev.com/ie/'
document.write("<META HTTP-EQUIV='Refresh' CONTENT='0; URL=http://fibdev.com/non-ie/'
I've tryed to substitute the "document.write" line with html for my ie site code, but I get a syntax error. I've tryed doing multiple document.write's, but to no avail. Is there a better way to do this than the approch I'm attempting?