منطقة الهدف الممتلكات
مثال
قم بتغيير الهدف لمنطقة معينة في خريطة الصورة:
document.getElementById("venus").target = "_blank";
التعريف والاستخدام
تقوم الخاصية الهدف بتعيين أو إرجاع قيمة السمة الهدف لمنطقة ما.
تحدد السمة الهدف مكان فتح المستند المرتبط.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
إعادة الخاصية الهدف:
areaObject.target
قم بتعيين الخاصية الهدف:
areaObject.target = "_blank|_self|_parent|_top|framename"
Value | Description |
---|---|
_blank | Open the linked document in a new window |
_self | Open the linked document in the same frame as it was clicked (this is default) |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the full body of the window |
framename | Open the linked document in a named frame |
تفاصيل تقنية
قيمة الإرجاع: | سلسلة ، تمثل مكان فتح المستند المرتبط |
---|
مزيد من الأمثلة
مثال
احصل على هدف منطقة معينة في خريطة الصورة:
var x =
document.getElementById("venus").target;
الصفحات ذات الصلة
مرجع HTML: سمة الهدف <المنطقة> HTML
❮ كائن المنطقة