2010-08-13

Javascript Check the page is or isnt in frames

Javascript Check the page is or isnt in frames

if (window.parent.frames.length>0) { // Parent frame 數值, 如果為0表示不在frame中
// statement
}

沒有留言: