How do I provide an HTML embedded code for my web page?
I have开发者_运维技巧 a web page that I would like others to add onto their own web page. I know I can do this by providing an IFrame code, but is there a better way, such as providing a Javascript to embed? The IFrame has ugly scrollbars that do not make the embed so seamless. Can anyone help with this?
You can use Javascript, but it requires some special finessing with the document domain to handle cross-site scripting issues.
With CSS, it's possible to change how the iframe appears regarding scroll bars.
When we hosted a secured login control, we used a combination of an iframe and javascript with CSS to prevent scroll bars.
精彩评论