Difference between revisions of "JavaScript links are evil"
From Nick Jenkins
m (add Sites asked to consider above change) |
m |
||
Line 21: | Line 21: | ||
! Result | ! Result | ||
|- | |- | ||
− | | [http:// | + | | [http://spamgourmet.com SpamGourmet disposable email service]. |
| 15-Feb-2006 | | 15-Feb-2006 | ||
− | | '' | + | | ''Response received'' |
|} | |} | ||
Revision as of 08:29, 17 February 2006
Please don't use javascript for your links. Use standard HTML instead.
For example:
<a href="#" onClick="MM_openBrWindow('images/storyimages/040504_incident_report.html','','scrollbars=yes,width=840')">report</a>
There is simply no reason whatsoever for it. This works just as well like this:
<a href="images/storyimages/040504_incident_report.html" target="_blank">report</a>
This has the following advantages:
- No loss of functionality - in fact, more functionality.
- Works even with Javascript turned off.
- Putting the cursor over the link shows in the status bar what it is - something that you don't get with JavaScript.
- Users hate popup windows.
Sites asked to consider above change
Site | Date | Result |
---|---|---|
SpamGourmet disposable email service. | 15-Feb-2006 | Response received |