www.webdeveloper.com
Results 1 to 7 of 7

Thread: Browser does not support javascript even if it is enabled

  1. #1
    Join Date
    Jun 2014
    Posts
    2

    Browser does not support javascript even if it is enabled

    I am working on javascript. Recently I tried to to run my javascript in notepad++, but none of my browser support javascript. Later on, I search in google, there i was advised to enable javascript. when I enabled it, still it is not support. I run this program:


    <html>
    <head>

    </head>

    <body>
    <script type="text/javascript">

    document.write{"Starting with the name of Allah "};

    </script>



    </body>
    </html>




    I dont know whether it has an error, or something else.

    Kindly help me out as soon as possible.

    Bundle of thanks........in advance.

  2. #2
    Join Date
    Oct 2012
    Posts
    42
    For this particular code example:

    you are using braces where you should use brackets i.e.:

    document.write("hello world");

    An general note, the developer tools in chrome/safari/opera and firefox are quite useful for testing and debugging javascript code - in most of these browsers you can open the developer tools by right clicking in a web page and selecting the 'inspect element' option - javascript error messages will be displayed under 'console'.

    It might also be a good idea to download a copy of brackets (http://brackets.io/) which includes a quite useful javascript syntax/style checker.

  3. #3
    Join Date
    Jun 2014
    Posts
    2
    Thank yooooooooooou very much indeeeeeeeeed..... it really works.
    Bundle of thanks...................


    My dear can you tell me a good source (i.e books, videos, tutorials, and internet sources) for javascript and webdevelopment??????

  4. #4
    Join Date
    May 2014
    Posts
    900
    Quote Originally Posted by rh_lloydnorthov View Post
    you are using braces where you should use brackets
    Minor correction, parenthesis, not brackets.

    () == parenthesis, for passing parameters to functions
    [] == brackets, for array indexing
    {} == braces, for object declarations
    <> == chevrons, for sgml/xml tags


    Try to keep them straight.

    While technically parenthesis are considered 'round brackets' and braces are 'curly brackets', it's better to use their distinct name so as to avoid confusion. Case in point, they are all 'brackets' -- so "braces instead of brackets" doesn't make sense; braces are brackets, as are parenthesis and chevrons!
    Last edited by deathshadow; 06-13-2014 at 02:10 PM.
    Java is to JavaScript as Ham is to Hamburger.

  5. #5
    Join Date
    Apr 2014
    Location
    Burnley uk
    Posts
    68
    Quote Originally Posted by abdullah khan View Post
    Thank yooooooooooou very much indeeeeeeeeed..... it really works.
    Bundle of thanks...................


    My dear can you tell me a good source (i.e books, videos, tutorials, and internet sources) for javascript and webdevelopment??????
    yeah bro a website is available at this time. please search in google for thenewboston(dot)org/index.php. its a really good website with alot of tuts. i hope you will like it

  6. #6
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,346
    Here is a good source of information, all it takes is to search and if you can't find stuff, ask.
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  7. #7
    Join Date
    Jun 2014
    Posts
    6
    Try to use chrome. It is best browser for you.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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