Archive for September 26, 2007

How to Enable and Disable JavaScript in Mozilla Firefox

Posted in JavaScript, Technology with tags , on September 26, 2007 by Joey

JavaScript can easily be enabled and disabled in Firefox through a check box that is found at the following location in Mozilla Firefox:

  • Click ‘Tools’ on the menu bar
  • Click ‘Options’ from the menu
  • Click on the ‘Content’ section in the pop up box
  • Click the ‘Enable JavaScript’ check box to enable JavaScript; remove the check in the box to disable JavaScript

Related articles:
How to Enable and Disable JavaScript in Internet Explorer

JavaScript Instance Properties

Posted in JavaScript, Software, Technology, internet, programming on September 26, 2007 by Joey

A constructor that is created in JavaScript can have properties defined for it. Each instantiation of the constructor has it’s own copy of the properties. These are called ‘instance properties.’

For example, suppose the following constructor was defined:

function Dog()
{
this.legs = 4;
}

From this constructor, two instances of the Dog class could be instantiated:

var myDog = new Dog();
var myDog2 = new Dog();

Each of these instances has the same value for the ‘legs’ property but they eahch have their own copy.

document.write(myDog.legs);
document.write(myDog2.legs);

Related articles:
Object-oriented JavaScript
JavaScript Instance Methods