When I create a webpage with an iframe in it, the tag get shown in the source code.
How do I hide the tag?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t really ‘hide’ a tag, but you could generate the iframe tag in Javascript. Is there lots of content inside the iframe tag?
If not, you could do for example, HTML:
then, in JS:
Then you can load the javascript externally and it’s pretty well hidden, though not if the user uses Firefox or Chrome, since they have a real-time DOM viewer :), and you’ll never be able to fool them =D