<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Netscape Navigator content</title>
</head>
<body>
This is the page to go to if you are using Netscape Navigator.
</body>
</html>
Save the file as netscapecontent.htm in the same folder as the iecontent.htm file.
4
5
Restart Dreamweaver.
Create a new HTML file with the following content:
6
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Which browser</title>
</head>
<body>
</body>
</html>
Save the file as whichbrowser.htm in the same folder as the iecontent.htm file.
7
8
Click the Plus (+) button on the Behaviors panel and select the Check Browser Band behavior.
Click the Browse button next to the Go to the URL option if the browser is Netscape Navigator text box, and select
9
the netscapecontent.htm file.
10
Click the Browse button next to the Go to the URL option if the browser is Internet Explorer text box, and select
the iecontent.htm file.
Click OK.
11
Dreamweaver adds the specified JavaScript to the whichbrowser.htm file, so that the file appears as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Which browser</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function checkBrowserBrand(netscapeURL,explorerURL) {
if (navigator.appName == "Netscape") {
if (netscapeURL) location.href = netscapeURL;
}else if (navigator.appName == "Microsoft Internet Explorer") {
if (explorerURL) location.href = explorerURL;
}
}
DREAMWEAVER CS3
235
Extending Dreamweaver