Here are some of the Javascript objects and their properties & methods
| Hierarchy Objects | |||
| Object | Properties | Methods | Event Handlers |
| Window | defaultStatus frames opener parent scroll self status top window |
alert blur close confirm focus open prompt clearTimeout setTimeout |
onLoad onUnload onBlur onFocus |
| Frame | defaultStatus frames opener parent scroll self status top window |
alert blur close confirm focus open prompt clearTimeout setTimeout |
none (The onLoad and onUnload event handlers belong to the Window object) |
| Location | hash host hostname href pathname por protocol search |
reload replace |
none |
| History | length forward go |
back | none |
| Navigator | appCodeName appName appVersion mimeTypes plugins userAgent |
javaEnabled | none |
| document | alinkColor anchors applets area bgColor cookie fgColor forms images lastModified linkColor links location referrer title vlinkColor |
clear close open write writeln |
none (the onLoad and onUnload event handlers belong to the Window object. |
| image | border complete height hspace lowsrc name src vspace width |
none | none |
| form | action elements encoding FileUpload method name target |
submit reset |
onSubmit onReset |
| text | defaultValue name type value |
focus blur select |
onBlur onCharge onFocus onSelect |
| Built-in Objects | |||
| Array | length | join reverse sort xx |
none |
| Date | none | getDate getDay getHours getMinutes getMonth getSeconds getTime getTimeZoneoffset getYear parse prototype setDate setHours setMinutes setMonth setSeconds setTime setYear toGMTString toLocaleString UTC |
none |
| String | length prototype |
anchor big blink bold charAt fixed fontColor fontSize indexOf italics lastIndexOf link small split strike sub substring sup toLowerCase toUpperCase |
Window |
| JavaScript Rocks!! | |||
you can use javascript on asp.net form just by adding
<script language=”JavaScript”>
</script>
tag in the <head> of the asp.net page,
Between <script language=”JavaScript”> </script> tag you can declare your javascript function and then call it.
Tags: JavaScript, JavaScript Functions, JavaScript Objects, Patkar College Computer Science