Wednesday, April 6, 2016

Getting Computer Name of the System using JavaScript

This is not probably you want to do all the time. But One day I was looking for how to find host name in client PC for filling up their asset, they dont know how to find it. and I used this script to help them to make it easy

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Computer Name</title>
        <script type="text/javascript">
            function getComputerName() {
                var WshNetwork = new ActiveXObject("WScript.Network");
                document.writeln("Computer Name = " + WshNetwork.ComputerName + "<br />");
            }
        </script>
    </head>
    <body onload="javascript: getComputerName()">

    </body>
</html>

17 comments:

  1. Good job! Fruitful article. I like this very much. It is very useful for my research. It shows your interest in this topic very well. I hope you will post some more information about the software. Please keep sharing!!
    Java Training in Chennai
    Java Training in Coimbatore
    Java Training in Bangalore

    ReplyDelete
  2. Personality development training in bangalore , the best retail sales training to develop your body language, personal ability. and also we provides health management and sales training.

    ReplyDelete
  3. Best Video Production Company in Bangalore We at VHTnow create visual masterpieces that engage, inspire and impact people's lives. Our services also include ad film and corporate film production in bangalore
    https://www.vhtnow.com/
    It has been around 6 years into creating compelling videos for you and likes of you and in such a short time, we are labeled to be the supreme most video production company in Bangalore. Owing to our vision to realizing your ideas in a way that you have never considered before, we deliver you creative and engaging films that make difference to your company. We understand that how much a video matters to your business, hence we are the right corporate video production company for you as we create videos for you considering them our own. Our team of resilient, hardworking and insightful professionals makes the work quite easy for us. Amongst all the video production companies in Bangalore, our approach is the simplest. We work for your business outcomes and strive to make it better by providing you with an insightful film.

    The inception of VHTnow was to bridge the gap clients and the corporate companies with the help of technology and creativity. Our production house in Bangalore is known for creating visual masterpieces that engage and inspire people. We keep it simple by making videos for you that marks your presence in the outside world in the best way possible and enhances your work.We live by this ideology and make sure that it surpasses the customary and spells distinction for you
    corporate video production bangalore
    Best Video Production Company in Bangalore : We at VHTnow create visual masterpieces that engage, inspire and impact people's lives. Our services also include ad film and corporate film production in bangalore
    video production bangalore

    ReplyDelete
  4. Seo services in Bangalore : Best SEO Companies in Bangalore: Hire Digimark Agency, best SEO Agency in Bangalore who Can Boost Your SEO Ranking, guaranteed SEO Services; Free SEO Analysis.

    Seo agency : Digital Marketing Company In Bangalore: DigiMark Agency is one of the Best Digital Marketing companies in Bangalore. Ranked among the Top digital marketing agencies in Bangalore. SEO Company.

    Seo company : Social Media Marketing company in Bangalore: DigiMark Agency is one of the Best Social Media Marketing agency in Bangalore which provides you the right services.

    Seo agency in Bangalore : PPC Company in Bangalore: Digimark Agency is one of the best PPC services provider in Bangalore. This one of the best service if you want quick ROI.

    ReplyDelete
  5. Acharya Institute of health sciences is one of the best colleges in Bangalore for Master in Hospital Administration(MHA) course.Get a masters degree in hospital Administration from the best college in Bangalore. Affiliated to Rajiv Gandhi University of Health Sciences and approved by Govt. of Karnataka, IAP, INC & KNC.
    Visit: hospital management course in bangalore
    Acharya Institute of health sciences is one of the best colleges in Bangalore for Bachelors in Radiology and Medical Imaging Technology(MIT). Acharya offers best course of B.Sc. MIT. Affiliated to Rajiv Gandhi University of Health Sciences and approved by Govt. of Karnataka, IAP, INC & KNC.
    Visit: bsc mit colleges in bangalore
    Acharya Institute of health sciences is one of the best colleges in Bangalore for Bachelor of Physiotherapy course. Ranked in top BPT colleges in Bangalore.Affiliated to Rajiv Gandhi University of Health Sciences and approved by Govt. of Karnataka, IAP, INC & KNC.
    Visit: Bachelor of Physiotherapy course
    Acharya Institute of health sciences is one of the best colleges for M.Sc. nursing in Bangalore.Ranked among top 10 nursing colleges, offering Post B.Sc nursing courses in Bangalore. Affiliated to Rajiv Gandhi University of Health Sciences and approved by Govt. of Karnataka, IAP, INC & KNC.
    Visit: Post BSc nursing colleges in Bangalore

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article resolved my all queries. keep it up



    Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery

    ReplyDelete
  9. it is really explainable very well and i got more information from your blog.

    ReplyDelete
  10. I enjoyed reading your post and learning about the topic at hand. Your passion for the subject matter really shone through in your writing.Social media agency in surat
    .

    ReplyDelete