document.domain of a page

If we are running a script in a website or in our localhost we can find out the domain name of the website by using document.domain property. Say we have developed a script which can work in multiple domains and we need to find out the present domain name for our processing.

Here is the syntax of our domain property of document object.
The output for this page will be Here is the code.
<script type="text/javascript">


document Object URL of a Page
Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net



    Thanks very much solve the problem :) God bless you

    Post your comments , suggestion , error , requirements etc here

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer