Manish
Manish

Reputation: 6286

Substitute to <iframe>

I need to open a page inside another page without the horizontal scroll bar in the inner page.

I don't want to use <iframe> tags on my page. Is there any substitute to the <iframe> tag??

Upvotes: 1

Views: 7336

Answers (4)

ZJR
ZJR

Reputation: 9572

If you want to validate against strict, <object> should be the way to go.

<object data="example.html" type="text/html" width="500" height="300"></object>

Please note that MSIE 6 doesn't support html object tags.

Upvotes: 0

wilth
wilth

Reputation: 705

If this is about the scrollbars (you mentioned that in your comment), you can hide/show them using stylesheets - try the following:

<body style="overflow-y:hidden; overflow-x:hidden">
...
</body>

You can use the styles on other tags (textareas etc.) as well.

PS: If you clarify your question, it's a good idea to edit the original post instead of commenting - this will make it easier to understand your question.

Upvotes: 4

Thinker
Thinker

Reputation: 14464

Best way to avoid IFRAME is to use AJAX. If you would use jQuery it is as simple as that:

$('#yourDIV').load('http://someurl.com/example.html');

Where #yourDIV is ID of any element you want, DIV for example.

Upvotes: 1

Victor
Victor

Reputation: 9269

Maybe <object> or <embed> or something like that. I think you can put an html there. But that would be sort of the same, i guess...

Upvotes: 0

Related Questions