Fon
02-05-2008, 08:50 AM
So I have this click event happening in a linked js file:
if (!this.options.modal) ) {
Event.observe(this.popup, 'click', this.bring_to_front.bindAsEventListener(this));
Where "this" is the div popup object that uses this statement. Anyway, I want to add an extra condition. I only want it to go through, if the user is not clicking on an anchor. Is it
if ((!this.options.modal) && (!this.anchor))
I basically want a function that returns true / false if the object in an anchor. How do I do that in js?
Thanks.
if (!this.options.modal) ) {
Event.observe(this.popup, 'click', this.bring_to_front.bindAsEventListener(this));
Where "this" is the div popup object that uses this statement. Anyway, I want to add an extra condition. I only want it to go through, if the user is not clicking on an anchor. Is it
if ((!this.options.modal) && (!this.anchor))
I basically want a function that returns true / false if the object in an anchor. How do I do that in js?
Thanks.