Answers to frequently asked questions on how to use objects with Javascript.
After Microsoft lost a court case, Internet Explorer has been changed so that objects in the web page (put there using the <object> or <embed> tag) must now ask for permission before being allowed to run. Adding a simple piece of Javascript to your web pages can soon remove that extra step for your visitors and get things running again straight away.
All objects in Javascript have valueOf and toString methods.
The 'with' keyword is used to reduce the need to specify object names in your code.
You can find out if and where one piece of text is contained within another text string by using the indexOf method.
Cookies are one way to pass information between web pages. Here is a brief introduction to cookies and a couple of Javascript functions to help you use them.
Checking on the colour or background colour assigned to a particular object on the page is not quite as simple as you think because different browsers supply the information in different formats. You need to test the same colour in three different formats to get consistent cross browser results.