Brett Patterson wrote:
Recently, I experimented with changing check boxes with JavaScript. If the user clicked on the words next to the check box, then the box would be checked, once checked if the user clicked again, then the box would be unchecked.
Sounds like a <label> would have been easier.

I thought that JavaScript was read like an external CSS file was read, where you would have to use the (../) part to link to the image if it was in a different folder one level above the current folder. (as the first line of code above is.) Is that not how JavaScript works? When it comes to linked images?
You aren't reading the resource at the URL from JavaScript though - you are changing the DOM so it references a different URL (and it is still using the URI of the HTML document as a base).


--
David Dorward
http://dorward.me.uk/



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to