Friday, 6 September 2013

When creating a function in the script tag, what object is it attached to as a member of?

When creating a function in the script tag, what object is it attached to
as a member of?

When I create a function in the script tag just inside a HTML page, what
object is it attached to?
<script>
var setTopOffset = function(row, rowHeight, pageSize) {
listControl.moveListToWith(row,rowHeight,pageSize);
};
</script>
If I do console.log(window); I don't see where setTopOffset is, should it
be there?

No comments:

Post a Comment