15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4 ✦ The Document and Body Objects (Chapter 18)<br />

function rightFrame() {<br />

var output = “\n”<br />

output += “function showOffsets() {\n”<br />

output += “parent.readout.document.forms[0].xOffset.value = “ +<br />

“document.body.scrollLeft\n”<br />

output += “parent.readout.document.forms[0].yOffset.value = “ +<br />

“document.body.scrollTop\n}\n”<br />

output += “document.onclick = showOffsets\n”<br />

output += “Content Page\n”<br />

output += “Scroll this frame and click on a table border to view “ +<br />

“page offset values.\n”<br />

output += “”<br />

var oneRow = “Cell 1Cell 2Cell 3Cell 4” +<br />

“Cell 5”<br />

for (var i = 1; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!