<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
I ended up creating a javascript function as follows:
Code:
function aclick(url){
window.open(url,'duffx','width=775,height=450,resizable,scrollbars,toolbar,location,menubar,status');
}
And I call it by doing
Code:
<a href="images/teddy/" onClick="aclick(this.href); return false;">teddy bear</a>
It passes validation, and this way it's more obvious that I opened a popup because of the smaller size, instead of it opening full-screen. (When I've seen the older generation like my mother browse my website, she always looks for a back button on pages I had open in a new window). If someone has javascript disabled, it just opens the link in the current window.
For those interested, the code
Code:
<a href="images/teddy/" onClick="window.open(this.href); return false;">teddy bear</a>
will do the EXACT same thing as
Code:
<a href="images/teddy/" target=_blank>teddy bear</a>
and still pass strict validation (if anyone cares).
__________________
http://duffx.com
|