|
|
Pointing Users to the Best of All Possible URLs; What Netscape Doesn't Like; Slapping Designers Upside the HeadBy David Fiedler and Scott Clark Dear Dr. Website®: I have registered several domains, such as mydom.com, mydom.org, mydom.net. The host for each domain points to the IP address of my Web server. I want to set it up so that when someone types in www.mydom.org, they will be pointed to www.mydom.com. How do I do that? You can test for the current URL and go from there: <script language="JavaScript"> <!--- if(document.location == "http://www.mydom.com") window.location.href="http://www.mydom.org"; //--> </script>You could also set your Web server up so that www.mydom.com is an alias for www.mydom.org. For a tutorial on how to do that, see http://webdeveloper.com/management/manage_fix_www.html. Dear Dr. Website®: I have a Web site that works fine on Internet Explorer, but nothing comes up when I bring it up on any version of Netscape Navigator. Why? Netscape often balks at incorrect table code, whereas MSIE will still render the page correctly. In your case, you're using a single-frame frameset, which can also cause problems. If you are using a table with uneven Table Row and Table Data tags, and then more TRs and TDs with no opening TABLE tag, that'll do it. Dear Dr. Website®: I still come across Web pages that are designed to be seen on huge monitors and ignore the screen size of smaller monitors! Could you tell those designers how to design Web pages to fit everybody's browser size? Sure. Hey, you designers: Code large tables as <TABLE WIDTH=90%>, which will automatically scale the table to 90 percent of the available browser width, rather than something like <TABLE WIDTH= 600>, which will give you a 600-pixel-wide table whether the space is available or not.
Visit The Dr. Website® Archives. Click here for a list of Dr. Website's most frequently asked questions (and answers!). Send your own question to Dr. Website®.
Contact the WebDeveloper.com® staff Last modified: 20
|
Refresh Daily
|