Articles in the Javascript Category
Javascript »
It’s a real headache when you have to work on objects and arrays in Javascript. It would be lot easier to detect elements of the Javascript objects/arrays if we have print_r function in Javascript as we have in PHP.
I googled the web and have found a very efficient print_r Javascript function. This has helped me a lot in my projects. Here is the code:-
Javascript »
Here, I will be demonstrating on showing or hiding a div when a link is clicked. I have done this with Javascript and CSS.
I have called showHideDiv() Js function when the link is clicked. The display of the div where content is present, is visible or hidden on each click. For this, CSS styling is used (display: none).
Javascript »
You can add html elements dynamically with Javascript. In this article, I will show you how to do so. I have created two Javascript functions. One for creating html elements and the other for removing them.
In my html elements, I have created ‘li’ and ’strong’ elements inside ‘div’. The div id is ’summary’. I have written comment in the code so that it would be easy to understand.
Javascript, PHP »
I had to work on multi-dimensional array with javascript and php. I had a multi-dimensional array in php. I had to load it into javascript array and then populate the html selection list.
The challenge for me was to create multi-dimensional array in javascript and populate selection list with for loop in javascript.
Javascript »
From the code below, you can get Resolution, Page title, Page url, Agent name, Browser name and Page Referrer.
Javascript »
I had problem giving the back link and I found this solution:
Go Back
This helped me. Hope this will be useful to you as well.

