-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp33.js
More file actions
38 lines (27 loc) · 684 Bytes
/
Copy pathapp33.js
File metadata and controls
38 lines (27 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//RIGHT CLICK BLOCK
window.onload = function(){
document.addEventListener('mousedown',function(arg){
if(arg.button == 2){
alert('prohibido')
}else{
console.log('ok')
}
})
document.addEventListener('mouseup',function(arg){
var texto = window.getSelection().toString()
console.log(texto)
})
}
;
//ON SUBMIT
function validar(){
var nombre = document.getElementById('nombre').value;
var email = document.getElementById('email').value;
if (nombre.length < 1){
return false;
}
if (email.length <1){
return false;
}
return true;
}