View Full Version : js - textbook questions: beginner: event handlers

12-26-2007, 10:58 AM
js - textbook questions

if x=6 y=7
tell me result:
y=++x x,y=?
y=x++ x,y=?

below is correct with two statements and "return" ?
<a href="http://www.polis-index.com.cy/" onMouseOver="document.home.src='images/home2.gif'; window.status='Go To Home Page'; return true"><img name="home" src='images/home.gif' alt='press me to go to homepage'></a>

this should run / prompt:
parseFloat(prompt("enter a number: ", ""))

what js function to use and what syntax for write in a doc the DATE last modified ?

Philip M
12-26-2007, 02:09 PM
You really ought to use Google for this type of question.

There are lots of scripts which return the date last modified, including one close to home at:-


I do not understand

tell me result:
y=++x x,y=?
y=x++ x,y=?

but you should study your textbook for this sort of thing, i.e how assignment operators work. You can find out many things by simple experiment:-

<script type="text/javascript">
y = 10;
z = ++y;
alert (z); // 11

12-26-2007, 11:57 PM
I have a series of tutorials at http://javascript.about.com/od/learnjavascript/Learn_to_Program_with_Javascript.htm that covers all this.