HTML DOM Input URL form प्रॉपर्टी इनपुट URL के लिए समाहित करने वाले फॉर्म का रेफरेंस लौटाती है।
सिंटैक्स
निम्नलिखित सिंटैक्स है:
फॉर्म ऑब्जेक्ट का रेफरेंस प्राप्त करना:
inputURLObject.form
उदाहरण
आइए Input URL form प्रॉपर्टी का एक उदाहरण देखें:
<!DOCTYPE html> <html> <head> <title>Input URL form</title> <style>
form {
width:70%;
margin: 0 auto;
text-align: center;
}
* {
padding: 2px;
margin:5px;
}
input[type="button"] {
border-radius: 10px;
}
</style> </head> <body>
<form id="Larry Page">
<fieldset>
<legend>URL-form</legend>
<label for="URLSelect">URL : <input type="URL" id="URLSelect" size="25"> </label>
<input type="button" onclick="getform()" value="Get Co-founder">
<div id="divDisplay"></div>
</fieldset>
</form>
<script>
var divDisplay = document.getElementById("divDisplay");
var inputURL = document.getElementById("URLSelect");
function getform() {
if(inputURL.value !== '')
divDisplay.textContent = 'Co-founder: '+inputURL.form.id;
else
divDisplay.textContent = 'Please enter valid URL';
}
</script> </body> </html>
आउटपुट
यह निम्नलिखित आउटपुट उत्पन्न करेगा:
'Get Co-founder' बटन पर क्लिक करने से पहले:

'Get Co-founder' बटन चेक करने के बाद:
