To submit a form using JavaScript use document.form[0].submit();
document.form[0].submit();
To submit a form using JavaScript use document.form[0].submit();
document.form[0].submit();
‘ViewState’ is specific to a page in a session.
‘SessionState’ is specific to user specific data that can be accessed across all pages in the web application.
The status can be read as follows
alert(document.getElementById(‘checkbox1′).checked);
If the CheckBox will be checked, this alert will return TRUE.
Strict Mode adds certain compulsions to JavaScript. Under the strict mode, JavaScript shows errors for a piece of codes, which did not show an error before, but might be problematic and potentially unsafe. Strict mode also solves some mistakes that hamper the JavaScript engines to work efficiently.
Strict mode can be enabled by adding the string literal “use strict” above the file
Unshift method is like push method which works at the beginning of the array. This method is used to prepend one or more elements to the beginning of the array.
Basic Groups Of Dataypes Are
Following are looping structures in Javascript:
Variable typing is used to assign a number to a variable and the same variable can be assigned to a string.
JavaScript allows DOM elements to be nested inside each other. In such a case, if the handler of the child is clicked, the handler of parent will also work as if it were clicked too.
The function .call() and .apply() are very similar in their usage except a little difference. .call() is used when the number of the function’s arguments are known to the programmer, as they have to be mentioned as arguments in the call statement. On the other hand, .apply() is used when the number is not known. The function .apply() expects the argument to be an array.
The basic difference between .call() and .apply() is in the way arguments are passed to the function.