Программирование > JavaScript & JScript
div onclick как игнорировать ссылки внутри дива?
(1/1)
09h:
воть..
zzzzzzzxxxxxxx
тыкаю на xxxxxxx срабатывает onclick а если на zzzzzzz кидает на гугл ) как игнорировать содержимое дива и всегда при клике на него выполнять parent.document.location.href=\'http://yandex.ru\'; ?
ravshaniy:
Initiates any action associated with the object. For example, if the user clicks an a object, the browser loads the document specified by the href property. To cancel the default behavior, set the returnValue property of the event object to FALSE.
ravshaniy:
--- Код: ---
zzzzzzzxxxxxxx
--- Конец кода ---
вроде както так должно быть
09h:
биг спс
zzzzzzzxxxxxxx
во как сделал )
Навигация
Перейти к полной версии