Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.1 KiB

{# <script language="javascript">
function setUpHumanTest() {
var myform = document.getElementsByTagName("myform");
console.debug('hello');
// var myforms = document.getElementsByTagName("form") ;
// for (var i=0; i&lt;myforms.length; i++) {
// addEvent(myforms[i], "focus", markAsHuman, false);
// addEvent(myforms[i], "click", markAsHuman, false);
// }
}
// Generic cross-browser code for attaching events to elements
// You should really have this in a separate common JS file
var addEvent;
if (document.addEventListener) {
addEvent = function(element, type, handler) {
element.addEventListener(type, handler, null);
if (element.href) element.href="javascript:void('');" ;
}
}
else if (document.attachEvent) {
addEvent = function(element, type, handler) {
element.attachEvent("on" + type, handler);
if (element.href) element.href="javascript:void('');" ;
}
}
else {
addEvent = new Function; // not supported
}
addEvent(window, "load", setUpHumanTest, false);
</script> #}scr