Содержание
- 2. Getting the date var d = new Date() document.write(d.getDate() + "/") document.write((d.getMonth() + 1) + "/")
- 3. Getting and formatting the date var d=new Date() var weekday=new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday","Saturday")
- 4. Getting a random number The following code gets a random floating-point number between 0 and 1:
- 5. Getting a random integer The following code gets a random integer between 1 and 10: var
- 6. Displaying an alert box The following code displays an alert box when a button is clicked:
- 7. Telling what happened In my Concise JavaScript, part 2, I have code that shows what events
- 8. Telling what happened (Button)
- 10. Скачать презентацию