Latest web development tutorials
×

JavaScript & HTML DOM คู่มืออ้างอิง

ภาพรวม

JavaScript วัตถุ

JavaScript Array วัตถุ JavaScript Boolean วัตถุ JavaScript Date วัตถุ JavaScript Math วัตถุ JavaScript Number วัตถุ JavaScript String วัตถุ JavaScript RegExp วัตถุ JavaScript อสังหาริมทรัพย์ทั่วโลก / ฟังก์ชั่น JavaScript ผู้ประกอบการ

Browser วัตถุ

Window วัตถุ Navigator วัตถุ Screen วัตถุ History วัตถุ Location วัตถุ

DOM วัตถุ

HTML DOM Document วัตถุ HTML DOM วัตถุธาตุ HTML DOM แอตทริบิวต์วัตถุ HTML DOM วัตถุที่จัดกิจกรรม

HTML วัตถุ

<a> <area> <audio> <base> <blockquote> <body> <button> <canvas> <col> <colgroup> <datalist> <del> <details> <dialog> <embed> <fieldset> <form> <iframe> <frameset > <img> <ins> <input> - button <input> - checkbox <input> - color <input> - date <input> - datetime <input> - datetime-local <input> - email <input> - file <input> - hidden <input> - image <input> - month <input> - number <input> - range <input> - password <input> - radio <input> - reset <input> - search <input> - submit <input> - text <input> - time <input> - url <input> - week <keygen> <link> <label> <legend> <li> <map> <menu> <menuItem> <meta> <meter> <object> <ol> <optgroup> <option> <param> <progress> <q> <script> <select> <source> <style> <table> <td> <th> <tr> <textarea> <title> <time> <track> <video>

คุณสมบัติ HTML DOM documentURI

อ้างอิงวัตถุเอกสาร วัตถุเอกสาร

ตัวอย่าง

ได้รับเอกสารท้องถิ่น URI:

document.documentURI;

เอาท์พุท:

http://www.w3cschool.cc/jsref/prop-document-documenturi.html

ลอง»

ความหมายและการใช้งาน

การตั้งค่าคุณสมบัติ documentURI หรือผลตอบแทนที่ตั้งของเอกสาร

หากเอกสารถูกสร้างขึ้นโดยวัตถุ DocumentImplementation หรือถ้ามันไม่ได้กำหนดไว้ก็จะส่งกลับ null


สนับสนุนเบราว์เซอร์

Internet ExplorerFirefoxOperaGoogle ChromeSafari

นอกเหนือไปจากเบราว์เซอร์ Internet Explorer และเบราว์เซอร์อื่น ๆ ที่สนับสนุนคุณสมบัติ documentURI


ไวยากรณ์

การตั้งค่าเอกสาร documentURI:

document.documentURI= locationURI

Back documentURI:

document.documentURI

รายละเอียดทางเทคนิค

ผลตอบแทน: สตริงตัวแทน URI ของเอกสาร
รุ่น DOM ระดับแกนวัตถุ 3 เอกสาร


อ้างอิงวัตถุเอกสาร วัตถุเอกสาร