www.webdeveloper.com
Results 1 to 2 of 2

Thread: "!variable name" sytax

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    1

    "!variable name" sytax

    Hello,

    first of all i am sorry if this question has been answered. I was trying to find the result with search option but i couldnt find one. Maybe i wasnt looking at the write place.

    The last 2 weeks have been extreamly fun! I learned the basics of visual basic and now i ran trough the basic tutorials about javascript. I got the basic knowledge about it. Now i started to look at the code others make and i came accross this code:

    Code:
    function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }
    if(!head) <--- does this mean NOT head?

    Regards,
    HEki

  2. #2
    Join Date
    Mar 2009
    Posts
    452
    Yes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles