HoloGuides : Know Everything !

AZ

photos


 

find 
enhanced Search Agent
find 
in 220 000+ people
(architects, actors, painters, runners, ...)

recently updated or created

Excel 2007
London
php
Canon EOS
XML
2000 museums
Adobe Photoshop
6000 rivers
Venezuela
Sydney, Australia
Kenya
8000 painters
butterflies
1900 islands
Nikon D300
Pablo Picasso
Herb paris
Science Fiction
you are here : HoloGuides >>   Programming >>  JavaScript >>   statements  
 
  statements A-Z
 

 

   
   
  with

with(object-reference) is used to act on sub-objects or properties of the object reference.

example : having a form named "bingo" the following statements are always acting on that form sub-elements, properties or methods.

with(document.forms.bingo)
alert(a.value);
alert(b.value);

// x contains now 25.8

// the contents of the field a the b is shown.