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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| 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. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |