Test Output Index

testElementRowUsingIndex_AllPass

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element2bodybodyElement
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Element2
No element with id 2
Found 0 elements having attribute name with value 2 of type body
bodybodyElement

testElementRowUsingIndex_FailingType

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element2bodyBlahbodyElement
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Element2
No element with id 2
Found 0 elements having attribute name with value 2 of type bodyBlah
bodyBlah expected
body actual
bodyElement

testElementRowWithBadIndex

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element5001blahblah
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Element5001
No element with id 5001
Found 0 elements having attribute name with value 5001 of type blah
There are only 2 elements
blahblah

testElementRowWithNoNameCell

fitnesse table before run:
HtmlFixture
http://firstthePage
Element1head
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Element1
No element with id 1
Found 0 elements having attribute name with value 1 of type head
head

testElementRowUsingId

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
ElementbodyTagbodybodyElement
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
ElementbodyTag
bodybodyElement

testElementRowWithMissingId

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
ElementblahbodybodyElement
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Elementblah
No element with id blah
Found 0 elements having attribute name with value blah of type body
bodybodyElement

testElementRowUsingNameNoIndex

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydivdivdivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv
No element with id mydiv
Found 3 elements having attribute name with value mydiv of type div
divdivone<div name="mydiv" id="mydiv1">
  first div
</div>

testElementRowUsingNameNoIndexWithoutType

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydivdivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv
No element with id mydiv
Found 3 elements having attribute name with value mydiv of type
divdivone<div name="mydiv" id="mydiv1">
  first div
</div>

testFailElementRowNoType

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
FailElementdoesnotexistdivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
FailElementdoesnotexist
No element with id doesnotexist
Found 0 elements having attribute name with value doesnotexist of type
divone

testFailElementRowNoTypeFail

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
FailElementmydivdivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
FailElementmydiv
No element with id mydiv
Found 3 elements having attribute name with value mydiv of type
divdivone<div name="mydiv" id="mydiv1">
  first div
</div>

testFailElementRowWithType

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
FailElementmydivwrongtypedivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
FailElementmydiv
No element with id mydiv
Found 0 elements having attribute name with value mydiv of type wrongtype
wrongtypedivone

testFailElementRowWithTypeFail

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
FailElementmydivdivdivone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
FailElementmydiv
No element with id mydiv
Found 3 elements having attribute name with value mydiv of type div
div
value was found
divone<div name="mydiv" id="mydiv1">
  first div
</div>

testElementRowUsingNameWithIndex

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[2]divdivtwo
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[2]
No element with id mydiv[2]
Found 0 elements having attribute name with value mydiv[2] of type div
Found 3 elements having attribute name with value mydiv of type div
divdivtwo<div name="mydiv" id="mydiv2">
  second div
</div>

testElementRowUsingNameContainingBracket

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://fourththePage
Elementmydiv[2]divdivtwo
fitnesse table after run:
HtmlFixture
http://fourth
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv[2]" id="mydiv">
      first div
    </div>
  </body>
</html>
Elementmydiv[2]
No element with id mydiv[2]
Found 1 elements having attribute name with value mydiv[2] of type div
divdivtwo<div name="mydiv[2]" id="mydiv">
  first div
</div>

testElementRowUsingNameLastIndex

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[0]divdivthree
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[0]
No element with id mydiv[0]
Found 0 elements having attribute name with value mydiv[0] of type div
Found 3 elements having attribute name with value mydiv of type div
divdivthree<div name="mydiv" id="mydiv3">
  third div
</div>

testElementRowUsingNameSecondToLastIndex

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[-1]divdivtwo
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[-1]
No element with id mydiv[-1]
Found 0 elements having attribute name with value mydiv[-1] of type div
Found 3 elements having attribute name with value mydiv of type div
divdivtwo<div name="mydiv" id="mydiv2">
  second div
</div>

testElementRowUsingNameWithIndexFailTooLarge

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[4]divdivnone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[4]
No element with id mydiv[4]
Found 0 elements having attribute name with value mydiv[4] of type div
Found 3 elements having attribute name with value mydiv of type div
There are only 3 elements having attribute name with value mydiv of type div
divdivnone

testElementRowUsingNameWithIndexFailTooSmall

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[-3]divdivnone
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[-3]
No element with id mydiv[-3]
Found 0 elements having attribute name with value mydiv[-3] of type div
Found 3 elements having attribute name with value mydiv of type div
There are only 3 elements having attribute name with value mydiv of type div
divdivnone

testElementRowUsingNameLastToken

Setup after run:
HtmlFixture
WARNING: no focus element
Last Element Token$last$
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[$last$]divdivthree
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[$last$]
No element with id mydiv[$last$]
Found 0 elements having attribute name with value mydiv[$last$] of type div
Found 3 elements having attribute name with value mydiv of type div
divdivthree<div name="mydiv" id="mydiv3">
  third div
</div>

testElementRowUsingNameSecondToLastIndexWithToken

Setup after run:
HtmlFixture
WARNING: no focus element
Last Element Token$last$
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://secondthePage
Elementmydiv[$last$-1]divdivtwo
fitnesse table after run:
HtmlFixture
http://second
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
    <div name="mydiv" id="mydiv1">
      first div
    </div>
    <div name="mydiv" id="mydiv2">
      second div
    </div>
    <div name="mydiv" id="mydiv3">
      third div
    </div>
  </body>
</html>
Elementmydiv[$last$-1]
No element with id mydiv[$last$-1]
Found 0 elements having attribute name with value mydiv[$last$-1] of type div
Found 3 elements having attribute name with value mydiv of type div
divdivtwo<div name="mydiv" id="mydiv2">
  second div
</div>

testElementFocus

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://firstthePage
Element FocusbodyTagmyBody
fitnesse table after run:
HtmlFixture
http://first
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
  </head>
  <body id="bodyTag">
     This is the body
  </body>
</html>
Element FocusbodyTag
bodymyBody<body id="bodyTag">
   This is the body
</body>

testElementFocusFireOnFocusJS

Setup after run:
HtmlFixture
WARNING: no focus element
Escape HTML:onon
Javascript:onon
Display HTML:onon
Show SSL Errors:offoff
Show Javascript Errors:onon
Preserve:onon
Set Browser Versiondefault
Web Client restarted with new browser version. UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
Clear
web client restarted, cookies cleared
fitnesse table before run:
HtmlFixture
http://thirdthePage
Element FocusbodyTagmyBody
TextThis is the div
Element FocusdivTagmyDiv
TextThis is the div with focus
fitnesse table after run:
HtmlFixture
http://third
loaded time: 0 milliseconds
thePage<?xml version="1.0" encoding="ISO-8859-1"?>
<html id="htmlTag">
  <head id="headTag">
    <title id="titleTag">
      This is the Title
    </title>
    <script>
//<![CDATA[
     function processFocus()     {       document.getElementById("divTag").innerHTML = "This is the div with focus";     }   
//]]>
    </script>
  </head>
  <body id="bodyTag">
    <div id="divTag" onfocus="processFocus();">
        This is the div 
    </div>
  </body>
</html>
Element FocusbodyTag
bodymyBody<body id="bodyTag">
  <div id="divTag" onfocus="processFocus();">
      This is the div 
  </div>
</body>
TextThis is the div
Element FocusdivTag
divmyDiv<div id="divTag" onfocus="processFocus();">
  This is the div with focus
</div>
TextThis is the div with focus