
Originally Posted by
Twey
Ych, no.
HTML Code:
<a href="http://www.geocities.com" onclick="parent.loadwindow(this.href,600,400);return false;" target="_blank">Geocities</a>
That way non-JS browsers won't barf on the link, and should even still open it in a new window.
Well, it depends. If you want that behavior, yes. However, if the content to be displayed in the DHTML window would be better off being skipped in browsers without javascript enabled, the link example I provided (modified from the demo page's example) would be preferred.
This could also be accomplished in better fashion:
HTML Code:
<a href="plain_content.htm" onclick="parent.loadwindow('enabled_content.htm',600,400);return false;" target="_blank">Link Text</a>
Where plain_content.htm is a substitute page for non-javascript enabled browsers and enabled_content.htm is a similar page that relies heavily upon javascript.
However, if you truly wanted nothing to happen in non-javascript enabled browsers, the original code I provided would still be the way to go.
So, there is no reason to get so excited. Yes, there are various ways, depending upon the outcome desired.
Bookmarks