Input Range value attribute
Definition and usage
value
Sets or returns the value of the slider control's value attribute.
The HTML value attribute specifies the default value or the value entered by the user (or the value set by the script).
See also:
HTML reference manual:HTML <input> value প্রতিভূতি
Example
Example 1
Change the value of the slider control:
document.getElementById("myRange").value = "75";
Example 2
Get the value of the slider control:
var x = document.getElementById("myRange").value;
Example 3
An example to show the difference between defaultValue and value attributes:
var x = document.getElementById("myRange"); var defaultVal = x.defaultValue; var currentVal = x.value;
syntax
return value attribute:
rangeObject.value
set value attribute:
rangeObject.value = number
প্রতিভূতি
মান | বর্ণনা |
---|---|
number | স্লাইডার কন্ট্রোলারের মান নির্ধারণ করুন।নির্ধারণ না হলে, ডিফল্ট মান "50" |
প্রযুক্তিগত বিবরণ
ফলাফল: | মান, স্লাইডার কন্ট্রোলারের মান |
---|
ব্রাউজার সমর্থন
সারণীতে উল্লিখিত সংখ্যা এই অবজেক্টটির প্রথম সম্পূর্ণভাবে সমর্থনকারী ব্রাউজারের সংস্করণ
চ্রম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | 10.0 | সমর্থন | সমর্থন | সমর্থন |