how to make sure that a content page only appears on an iframe?

  • 1
  • Question
  • Updated 9 years ago
  • Answered
is it possible to make sure that a content page only appear in an iframe?

the tutorial on this site http://www.samisite.com/test-csb2nf/i... shows how to do it but it requires js files.

is there an alternative to this?

Thank you
Photo of bug flee

bug flee

  • 4 Posts
  • 0 Reply Likes
  • ok

Posted 9 years ago

  • 1
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi there Bug Flee,

You can add an iFrame to your site by adding the following code in an HTML widget (the widget with a blue sphere in it):

`
` Your browser does not support iframes.

`
`` _>

(just remove the at the front and back of the HTML code)

Replace "http://www.google.com" with the URL you want to use, save your changes and you should be good to go.

I hope this helps.

Jeremy
Photo of bug flee

bug flee

  • 4 Posts
  • 0 Reply Likes
Hi Jeremy,

Thank's for your reply. But actually I already did that step (after getting assistance from your Colleague yesterday).

The problem is that, in your example, we can still open www.google.com in a browser. Is it possible to make the content page (in the example www.google.com) only opens in the iframe we specified?

Thank's again
Photo of jeremy

jeremy, Employee

  • 1349 Posts
  • 90 Reply Likes
Hi,
I am not sure I understand your request. The iFrame should open in your site and keep opening there. Are you wanting a site that will only open in the iFrame and not in a browser in a new window at all?