You can compare two strings using “==” operator
eg :
var str1=”Test1″;
var str2=”Test2″;
if(str1=str2)
alert(“Message”);
You can compare two strings using “==” operator
eg :
var str1=”Test1″;
var str2=”Test2″;
if(str1=str2)
alert(“Message”);
You can declare an array using the constructor “Array”
var arlene1 = new Array();
var arlene2 = new Array(“First element”, “Second”, “Last”)
You can change the class name using the below given code.
document.getElementById(“idElement”).setAttribute(“class”,”className”);
Please include the following line in page.xml page to include js file from the your theme folder
<action method=”addItem”><type>skin_js</type><script>filename.js</script></action>
The path will be www.yourSiteName.com/skin/frontend/mind/extreme/js/filename.js
Please include the following line in page.xml page to include js file from the your theme folder
<action method=”addItem”><type>skin_js</type>filename.js</action>
The path will be www.yourSiteName.com/skin/frontend/mind/extreme/js/filename.js
AJAX is Asynchronous JavaScript and XML.
AJAX is not a new programming language, but a new way to use existing standards.
AJAX is the art of exchanging data with a server, and updating parts of a web page – without reloading the whole page.