Anchor search attribute
Definition and usage
search
Attribute setting or return href attribute value query string part.
The query string is the part after the question mark (?) in the URL. It is usually used for parameter passing.
See also:
JavaScript Reference Manual:location.search attribute
Instance
Example 1
return the query string part of the link:
var x = document.getElementById("myAnchor").search;
Example 2
Change the query string part of the link:
document.getElementById("myAnchor").search = "somenewsearchvalue";
Grammar
return search attribute:
anchorObject.search
set search attribute:
anchorObject.search = querystring
امتیازی کار
مقدار | وصف |
---|---|
querystring | URL کی جستجو کا حصہ مقرر کرتا ہے۔ |
تکنیکی تفصیلات
بازگشتی کار | آئی وی سٹرنگ کا مطلب، اس کی جستجو کا حصہ، شامل سوال سے پرچن (؟)۔ |
---|
بھرپائی درست
کروم | ایج | فائرفاکس | سافری | آپریا |
---|---|---|---|---|
کروم | ایج | فائرفاکس | سافری | آپریا |
پشتیبانی | پشتیبانی | پشتیبانی | پشتیبانی | پشتیبانی |