2012-09-15 63 views

回答

3

你的意思是

如果(上==個體經營)location.replace( 「iframewrapper.html?LOC =」 +逃生(location.href))

1

你不能總是保證,因爲您的用戶可以總是欺騙瀏覽器,它是你想要的。但你可以試試這個:

if (window!=window.top) { /* In a frame! */ } 
else { /* probably reload page and redirect to the page embedding the iframe */ }