Re: How to know if frames are frameset or iframes?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am just needing to know if the document in the browser contains
Frameset or IFrames.
I thought there was a method to check for an element in a document.






On Mon, 6 Feb 2006 18:44:02 -0500, "Igor Tandetnik"
<itandetnik@xxxxxxxx> wrote:

MikeJoel <none> wrote:
On Mon, 6 Feb 2006 16:42:50 -0500, "Igor Tandetnik"
<itandetnik@xxxxxxxx> wrote:

MikeJoel <none> wrote:
How can I know if the frames on a ducument are the old frameset or
inframes?

tagName, perhaps?

on what?

Depends on what you have. For example if you have a document object of
the page in a frame, you can use

document.parentWindow.frameElement.tagName
.



Relevant Pages

  • Re: http://news.bbc.co.uk/ problem
    ... you're dealing with is a browser rendering question. ... HOSTS file there yourself then that's very unlikely to affect ... In Firefox you can also block the IFRAMES that many ads ... With many people blocking ...
    (microsoft.public.windowsxp.general)
  • Re: HttpWebRequest only returning NOFRAMES part of page
    ... the site is probably looking at user agent to determine if the browser ... supports frames. ... > cant seem to get hold of the Frameset page Source code). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Aw shoot
    ... All are 'strict' HTML and CSS which ... It all looks fine at my end on any browser. ... Replace frames with server side includes so that your documents do ... When I look at http://www.jimscott.co.uk/ I see a frameset. ...
    (alt.html)
  • Re: Aw shoot
    ... It all looks fine at my end on any browser. ... Replace frames with server side includes so that your documents do ... When I look at http://www.jimscott.co.uk/ I see a frameset. ...
    (alt.html)
  • Re: http://news.bbc.co.uk/ problem
    ... you're dealing with is a browser rendering question. ... HOSTS file there yourself then that's very unlikely to affect ... In Firefox you can also block the IFRAMES that many ads ... With many people blocking ...
    (microsoft.public.windowsxp.general)