نسخة الكود كما يلي: وظيفة getId (id) { تنبيه (معرف) ؛ } <input id = "btn1" type = "button" value = "test" onClick = "return getId (this.id)" />