Monday, May 14, 2012

iFrame without source attribute but embeded html tag

I'm not that familiar with iframes and basically just want to find out if it's possible to exclude the 'src' attribute on an iframe tag and instead embed a html tag inside of it? For example:



<iframe id='myFrame'>
<html>
<head>...</head>
<body>
<h3>Hello World!</h3>
</body>
</html>
</iframe>


Also just a little side question, say this is indeed possible. And you're embeding this code in a JSP, would the java variables in the JSP also be visible to the html document in side the iframe's html tag?



Thanks guys!





No comments:

Post a Comment