how to prevent the display of getting framed in html?



how to prevent the display of getting framed in html?..

Answer / Pranveer Kumar

To avoid being displayed within a frame, add the 'frameset' meta tag with the content attribute set to '0':nn```htmln<!DOCTYPE html>n<html lang="en">n<head>n <meta charset="UTF-8" />n <meta name="MSSmartTagsPreventParsing" content="noframes" />n <title>No Frames</title>n</head>n<body>n <h1>This page should not be displayed within a frame.</h1>n</body>n</html>n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More HTML DHTML Interview Questions

What is initial scale?

1 Answers  


What is datalist tag?

1 Answers  


What is body tag?

1 Answers  


What is definition list in html?

1 Answers  


What are navigation buttons?

1 Answers  


Explain geolocation api in html5.

1 Answers  


What are the new APIs provided by the HTML 5 standard?

1 Answers   SwanSoft Technologies,


What is d full meaning of url?

1 Answers  


What is a meta description tag?

1 Answers  


What are xhtml files?

1 Answers  


How can I use tables to structure forms?

1 Answers  


Is html front end?

1 Answers  


Categories