My Blog

All about my activities, Ideas and everything.

Tag: javascript

The difference between apply and call method in javascript

Well, I have just an issue from my friend who have a problem with arguments passed in the extended method. This topic I will show the difference between apply and call method. First, what is call and apply method. This is a hard question for me to explain this kind of question in English. Haha. [...]

Javascript : A very simple modal form with a return value

To build a modal form web page. You can use this java script. JAVASCRIPT window.showModalDialog(‘popup.html’) And set the return value by doing this JAVASCRIPT function doOk() {   window.returnValue = ‘hello’;   window.close(); }

Basic HTML tab, using javascript

This will show how to create tabs control in HTML. CODE JAVASCRIPT var ids = new Array(‘tab1′,’tab2′) // declare array of tabs ?? CODE JAVASCRIPT function switchID(id) // function for switch between tabs { hideAllID(); // hide all the tabs showDivID(id); // show the selected tab } ?? CODE JAVASCRIPT function hideAllID() // function for [...]