internet.com

Go to WebDeveloper Home


hm-v6-139x61.gif

Database Journal: The Knowledge Center for Database Professionals

find a web host with:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access

advanced search
jobs

Get FREE Development Info via your Email!

The Webdeveloper channel
FlashKit
GIF.com
HiermenusCentral
webdeveloper Jobs
Java Boutique
JavaScript.com
JavaScript Source
ScriptSearch
StreamingMedia World
WDJ
WDVL
WebDeveloper.com
WebReference.com
XMLFiles.com

internet.com
Internet News
Internet Investing
Internet Technology
Windows Internet Tech.
Linux/Open Source
Web Developer
ECommerce/Marketing
ISP Resources
ASP Resources
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers

internet.commerce
Be a Commerce Partner










D R .   W E B S I T E®
WebDeveloper.com

December 15, 1999

Pointing Users to the Best of All Possible URLs; What Netscape Doesn't Like; Slapping Designers Upside the Head

By 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®.

Fast Jump to Anywhere on WebDeveloper.com®:


Contact the WebDeveloper.com® staff

Last modified: 20

 

Refresh Daily
Join Editor-in-Chief David Fiedler The Editor With No Time and find truth, justice, and a clue or two.


Browse by Category
[ Site Map ]

ActiveX / VBscript
Animated GIF Archive
Browsers
CGI / Perl
Database Connectivity
E-Commerce
HTML-Advanced: DHTML, CSS
HTML / Site Authoring Tools
Intranet/Groupware
Java
JavaScript
Multimedia: Audio / Video / Streaming Technologies
Opinions
Refresh Daily: Editorial Column
Security
Servers & Server Tools
Site Design / Graphics
Site Management / Marketing / Log File Analysis
VRML / 3D
XML