Javascript Knowledge

  • what is javascript

  • javascript Variable
  • javascript function
  • javascript Event

  • JavaScript If
  • javascript for

  • javascript object
  • Javascript String
  • Javascript Date
  • Javacsript Array
  • Javascript Math

  • Javascript onclick
  • JavaScript onload

  • Javascript Frame
  • Javascript Image
  • Javascript Style
  • Javascript Textarea
  • Javascript Table
  • Javascript window
  • Javascript Location
  • Javacsript form
  • Javascript Checkbox
  • Javascript Input
  • Javascript Radio
  • Javascript Select
  • Javascript Submit

  • Javascript alert
  • Javascript close
  • Javascript confirm
  • Javascript Document open
  • Javascript getElementById
  • Javascript print
  • Javascript reload
  • Javascript remove
  • JavaScript replace
  • Javascript setTimeout
  • JavaScript split
  • JavaScript substring
  • Javascript window open
  • window showmodaldialog

  • Javascript href
  • Javascript IFrame
  • Javascript innerHTML
  • Javascript selectedindex
  • Javascript URL
  • Javascript window Location

  • javascript write to file
  • JavaScript write
  • javascript string to integer
  • Javascript popup
  • Javascript return
  • Javascript Obfuscator
  • Javascript disable
  • Javascript Hide
  • More others

    Javascript
    CSS
    PHP

     

    Javascript Frame


    Javascript Frame Object

    The Javascript Frame object represents an HTML frame. For each instance of an HTML <frame> tag in a document, a Frame object is created.

    IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).

    Javascript Frame Object Properties

     

    Property

    Description

    IE 

    F

    N

    W3C

    contentDocument

    Returns the document the frame contains

    -

     

     

    Yes

    frameBorder

    Sets or returns whether to display a border for the frame

    5

    1

    6

    Yes

    id

    Sets or returns the id of the frame (In IE 4 this property is read-only)

    4

    1

     

    No

    longDesc

    Sets or returns a URL to a long description of the frame

    6

     

     

    Yes

    marginHeight

    Sets or returns the top and bottom margins of the frame

    5

    1

    6

    Yes

    marginWidth

    Sets or returns the left and right margins of the frame

    5

    1

    6

    Yes

    name

    Sets or returns the name of the frame

    5

    1

    6

    Yes

    noResize

    Sets or returns whether the frame can be resized

    5

    1

    6

    Yes

    scrolling

    Sets or returns whether the frame can be scrolled

    5

    1

    6

    Yes

    src

    Sets or returns the URL to be loaded by the frame

    5

    1

    6

    Yes

    Javascript Frame Object Methods

    Method

    Description

    IE

    F

    N

    W3C

    blur()

    Removes focus from the frame

    5

    1

     

    No

    focus()

    Gives focus to the frame

    5

    1

     

    No

    Javascript Frame Object Events

    Syntax: object.event_name="someJavaScriptCode"

    Event

    Description

    IE

    F

    N

    W3C

    onBlur

    Executes some code when the frame loses focus

    5

     

     

    No 

    onFocus

    Executes some code when the frame gets focus

    5

     

     

    No

     





















     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

  • Javascript |