Hi,
Working on a client site, I just came up with some code for doing popups
that I thought I'd share for comments here.
I know about TARGET being deprecated, and the Strict-compliant workaround
on SitePoint
(http://www.sitepoint.com/article/standards-compliant-world). But, as the
DOCTYPE for the site I'm working on is XHTML 1.0 Transitional, I came up
with this:
<a href="index.cfm?id=23" title="click for more info in a new window"
target="newWindow"
onclick="window.open('index.cfm?id=23','newWindow','height=500,width=400,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=no');
return false;">Click for popup</a>
The idea is, if JS isn't enabled, the HREF is opened in the named TARGET.
Seems to work fine.
I just wondered if anyone could spot any faults; or, more generally, how
you're dealing with popups in terms of standards and accessibility.
cheers,
Gyrus
[EMAIL PROTECTED]
http://norlonto.net/gyrus/dev/
PGP key available
*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
*****************************************************
- Re: [WSG] transitional, accessible popups? Gyrus
- Re: [WSG] transitional, accessible popups? Manuel González Noriega
- Re: [WSG] transitional, accessible popups? Gyrus
- RE: [WSG] transitional, accessible popups? P.H.Lauke
- RE: [WSG] transitional, accessible popups? P.H.Lauke
- RE: [WSG] transitional, accessible popups? Gyrus