Computer >> कंप्यूटर ट्यूटोरियल >  >> प्रोग्रामिंग >> JavaScript

JavaScript में इमेज के usemap एट्रिब्यूट का मान कैसे प्राप्त करें?

अवलोकन

useMap प्रॉपर्टी इमेज के usemap एट्रिब्यूट का मान लौटाती है।

उदाहरण

<!DOCTYPE html> <html>    <body>       <img id = "myid" src = "/images/html.gif" alt = "HTML Map" usemap = "#html"/>       <map name = "html">          <area id = "myarea" shape = "circle" coords = "154,150,59" href = "about.htm" alt = "Team" >       </map>       <script>          var x = document.getElementById("myid").useMap;          document.write("<br>Usemap: "+x);       </script>    </body> </html>
  1. - JavaScript में लिंक के type एट्रिब्यूट का मान कैसे खोजें?

    अवलोकनtype प्रॉपर्टी लिंक के type एट्रिब्यूट का मान लौटाती है (MIME प्रकार)।उदाहरण<!DOCTYPE html> <html>    <body>       <p><a id = "qriesid" href = "https://qries.com/" type="text/html" >Qries</a></p> &

  1. - JavaScript में लिंक के target एट्रिब्यूट का मान कैसे खोजें?

    अवलोकनtarget प्रॉपर्टी लिंक के target एट्रिब्यूट का मान लौटाती है (कहाँ खोलना है)।उदाहरण<!DOCTYPE html> <html>    <body>       <p><a id = "qriesid" target="_self" href = "https://qries.com/" type = "text/html"

  1. - JavaScript में बैकग्राउंड इमेज का आकार कैसे सेट करें?

    अवलोकनbackgroundSize प्रॉपर्टी बैकग्राउंड इमेज का आकार सेट करती है (चौड़ाई और ऊंचाई)।उदाहरण<!DOCTYPE html> <html>    <head>       <style>          #box {             border: 2px dashed blue;