function Cl(){
this.name=100;
this.view=function(){
input=document.createElement('input');
input.name='inputs';
input.addEventListener('click',function(){console.log(this.name)})
document.body.appendChild(input);
}
}
obj=new Cl;
obj.view();
Помогите вызвать console.log(this.name) чтобы вывелось 100;Нужно обратится к объекту создаваемым конструктором.Расмотрю все варианты.Чем больше тем лучше.Спасибо.