如何在JavaScript中搜索链接的type属性的值?
要在JavaScript中搜索链接的type属性的值,请使用type属性。您可以尝试运行以下代码来获取type属性的值。
示例
<!DOCTYPE html>
<html>
<body>
<p><a id = "qriesid" href = "https://qries.com/" type="text/html" >Qries</a></p>
<script>
var x = document.getElementById("qriesid").type;
document.write("Value of the type attribute: "+x);
</script>
</body>
</html>热门推荐
10 朋友明天手术祝福语简短
11 小伙父母婚礼祝福语简短
12 妈妈生日贺卡祝福语 简短
13 爱小姨文案祝福语简短
14 甄嬛传祝福语简短
15 开业经典祝福语简短
16 广东新居入伙简短祝福语
17 家庭恩爱祝福语大全简短
18 五二零朋友祝福语大全简短