Jump to content

eTianbun

Members
  • Posts

    547
  • Joined

  • Last visited

Posts posted by eTianbun

  1. Hi CodeName,What? Could you please explain it again?
    Well, nothing much to explain. Lets just say: The 'href' attr, is used to define what you are linking to, then the 'javascript' value inside the href attr, means that you are linking to javascript app, while the colon: , is used to introduce a parameter (value), passed to the JS app.
  2. It works. Can you explain to me why this is happening?
    Each statement/request passed to the browser, is seperated using semi-colon ( ; ), or by moving to the next line of the script (Its a way to denote one statement, from another). So when you write:
    a='<div>

    Lets say a variable is created, called 'a' and at the time the browser wants to create the string, that will be assigned to it, it finds out that you are missing the closing apostrophe, then it generate error.

×
×
  • Create New...