Title: background event listener

Hi

Is there a way of setting a default event??
I wanted to catch the background mouse click event.

My file structure is

<svg>
        <g>
                ...
        </g>
        <g>
                ...
        </g>
        <g>
                ...
        </g>
...
</svg>
I tryied to add a event listener on svg root element ("<svg>") but it won't do.
I didn't want to change the structure (due to a lot of code changes) to:
<svg>
<g>
        <g>
                ...
        </g>
        <g>
                ...
        </g>
        <g>
                ...
        </g>
</g>
</svg>
and set the high level g element.
But if it is the only way to do it....

Thank you for the help.


---------------------------------------------------------------
Filipe Marinho
[EMAIL PROTECTED]
EFACEC Sistemas de Electrónica, S.A
Rua Engº Frederico Ulrich
Apart. 3078 - 4471-907 Moreira Maia
PORTUGAL
Telf 229402000
---------------------------------------------------------------

Reply via email to