On 7 Mar 2004, at 12:40, Peter Firminger wrote:
Having said that, something like:
<a href="copyright.htm" onClick="window.open('',
'copyright','toolbar=0,location=0,directories=0,status=0,menubar=0,scro llbar
s=auto,resizable=0,width=310,height=300')" target="copyright">
will still work ok as the default behaviour of the href will generally be
used anyway.
I would advise a couple of changes:
- onClick becomes onclick for xhtml compliance
- don't have the url in two places (can make future updates tricky, and may mean that link checkers don't highlight a broken link, e.g if you change the href part but not the onclick part), so use this.href in the onclick part
<a href="copyright.htm" onclick="window.open(this.href,
'copyright','toolbar=0,location=0,directories=0,status=0,menubar=0,scrol lbar
s=auto,resizable=0,width=310,height=300')" target="copyright">
Ian Lloyd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WEB: http://www.ian-lloyd.com/ | AIM: uklloydi Round-the-World trip blog: http://ianandmanda.typepad.com/
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
