IT Community - Software Programming, Web Development and Technical Support

Top Web Design Mistakes EXPOSED! - #1

This is a discussion on Top Web Design Mistakes EXPOSED! - #1 within the Web Design Help forums, part of the Web Development category; The Use of JavaScript JavaScript is such a great technology - it allows much more interactivity with a website. But it ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Web Design Help

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-12-2007, 12:24 AM
PixelNameVj PixelNameVj is offline
D-Web Trainee
 
Join Date: Jul 2007
Posts: 28
PixelNameVj is on a distinguished road
Exclamation Top Web Design Mistakes EXPOSED! - #1

The Use of JavaScript

JavaScript is such a great technology - it allows much more interactivity with a website. But it should only be used when it is needed. Create a simple example as follows in your any html page.

<a href="javascript:goToLink('index.html');">Go to Home Page</a>

Now try doing a right-click and Save Target As on the above link. See what you get? This is how it should be coded

<a onClick="javascript:goToLink('index.html');return false;" href="index.html"> Go to Home Page</a>

Now try doing a Save Target As on the above link. You get the Save As dialog. There's also the added advantage of the search engine being able to index the linked page.

Recommendation

This is a very simple example of how an innocent looking code can affect users interacting with it in other ways. Other common misuses of JavaScript

As the main navigation system, sub-sections are fine as long as the main pages have links to the sub-sections in HTML code

To trail a snippet of text or image wherever the cursor moves around the page

To display a document within a page with custom JavaScript scroll bars, breaking the usual way of scrolling. Designer sites love to use this, especially to display News Updates.

To disable right-click or disable selection of text or some more-considerate-webmasters disable right-click on certain parts of the page, like the images. More on this below.

Courtesy: Bootstrike.Com
__________________
Cheers!!!

Last edited by PixelNameVj : 07-13-2007 at 12:40 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 4 PHP Mistakes by programmers Sabari PHP Programming 3 08-01-2007 03:57 AM
Top Web Design Mistakes EXPOSED! - #3 PixelNameVj Web Design Help 0 07-14-2007 02:27 AM
Top Web Design Mistakes EXPOSED! - #2 PixelNameVj Web Design Help 0 07-12-2007 11:19 PM
Worst SEO mistakes you've made? spid4r Search Engine Optimization 0 03-09-2007 12:34 AM
Search Engine Optimization -10 common mistakes to avoid spid4r Search Engine Optimization 0 03-09-2007 12:33 AM


All times are GMT -7. The time now is 11:49 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0