It provides instructions to robots which pages and directories not to index.
Google Webmaster Tools
PMA02:45
Google Webmaster Tools offers just that. First of all you can create
your account here: http://www.google.com/ webmasters/tools/
Once your account is active you'll need to add your site and verify
it by placing a string on the HTML head section (they will provide
instructions).
your account here: http://www.google.com/
Once your account is active you'll need to add your site and verify
it by placing a string on the HTML head section (they will provide
instructions).
Function Call Spacing
PMA02:29
Almost universally, the recommended style for function calls is to have no space between
the function name and the opening parenthesis, which is done to differentiate it
from a block statement. For example:
the function name and the opening parenthesis, which is done to differentiate it
from a block statement. For example:
The try-catch Statement
PMA02:26
JavaScript provides a try-catch statement that is capable of intercepting thrown errors
before they are handled by the browser. The code that might cause an error comes in
the try block and code that handles the error goes into the catch block. For instance:
try {
somethingThatMightCauseAnError();
} catch (ex) {
handleError(ex);
}
before they are handled by the browser. The code that might cause an error comes in
the try block and code that handles the error goes into the catch block. For instance:
try {
somethingThatMightCauseAnError();
} catch (ex) {
handleError(ex);
}
Load from the Server-Ajax
PMA02:22
The first is to keep the templates remote and use an XMLHttpRequest object to retrieve
additional markup. This approach is more convenient for single-page applications than
for multiple-page applications.
additional markup. This approach is more convenient for single-page applications than
for multiple-page applications.
JavaScript Object Literals
PMA02:20
Object literals are a popular way to create new objects with a specific set of properties,
as opposed to explicitly creating a new instance of Object and then adding properties.
For example, this pattern is rarely used:
as opposed to explicitly creating a new instance of Object and then adding properties.
For example, this pattern is rarely used:
JavaScript Refresh Page
PMA02:09
you refresh the page using
document.location.reload()
. You can add the true
keyword to force the reloaded page to come from the server (instead of cache). Alternatively, you can use the false
keyword to reload the page from the cache.Creating Elements, Attributes, and Objects
PMA02:03
An important benefit of dynamic content is the ability to create new content from
freshly received data. This is necessary in dynamic menu creation, navigation, breadcrumbs,
freshly received data. This is necessary in dynamic menu creation, navigation, breadcrumbs,
W3C node types
PMA02:02
Node type Numeric type value Description
Element - Represents an element.
Attribute - Represents an attribute.
Text-3 Represents character data in an element or attribute.
Element - Represents an element.
Attribute - Represents an attribute.
Text-3 Represents character data in an element or attribute.