[thelist] Look ma, no tables. Check please?

Daniel Medley dm at lgcy.com
Mon Jul 15 02:47:08 CDT 2002


.jeff wrote concerning http://www.lobowalk.com:
> this does indeed work for javascript and non-javascript users.  however,
> your style may cause problems in some browsers -- specifically the
> "javascript:" portion of your onclick event handler.  javascript is
assumed
> to be the language used for event handlers.  so, including it in the event
> handler is redundant and unnecessary.
>
> additionally, you're giving yourself more work than necessary.  instead of
> hardcoding the link to the document you want to open in your openWindow()
> function, use the "this" keyword (which refers to the even handlers
calling
> object, the <a> tag) with the href property -- openWindow(this.href).  now
> you code the link once, where it makes most sense, in the href property.
>
> if you haven't already, give this article a quick read.
>
> Links & JavaScript Living Together in Harmony
> http://evolt.org/article/thelist/17/20938/
>
> enjoy,
>
I have not read the article but will do so. Man, this is way exciting to get
all this advice and help. I'm so new to this, learning on my own, and it's
great to get this valuable help.

Thanks,
Daniel





More information about the thelist mailing list