javascript中的self是什么意思?
function toppage(){
if (self.location!=top.location){
parent.document.all(self.name).height = document.body.scrollHeight + 30;
parent.document.all(self.name).width = document.body.scrollWidth + 30;
}
}
function window.onload(){
toppage();
if (self.location!=top.location){
window.resizeTo(document.body.scrollWidth,document.body.scrollHeight);
}
}
那个self.location self.name都是指的什么?
还有那个document.body.scrollHeight控制的是什么啊?