i want to change a div content when my page embed into another page
for exemple:
if the visitor access directly to the page:
<div id="msg"> this is my page </div>
if my page embed into a frame
<div id="msg"> my page into anthor page :)</div>
thanks for advance.
You can easily check if page is in iframe using this trick:
So, you check it on page-loading and get something like this:
And default value “this is my page” should be in markup file.