471,316 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

Frames

Is it possible for a browser to support Javascript but not frames?

If so, is it possible to use Javascript to test if a browser can support frames?

Thanks
Jul 23 '05 #1
4 1374
abracad wrote:
Is it possible for a browser to support Javascript but not frames?
I can disable them independently in IE
If so, is it possible to use Javascript to test if a browser can support
frames?


<NOFRAMES>
<SCRIPT type="text/javascript">
alert("I guess so");
</SCRIPT>
</NOFRAMES>

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #2
abracad wrote:
Is it possible for a browser to support Javascript but not frames?

If so, is it possible to use Javascript to test if a browser can support frames?


if (window.frames){
//the browser supports the frames collection
}

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3
Randy Webb wrote:
abracad wrote:
Is it possible for a browser to support Javascript but not frames?

If so, is it possible to use Javascript to test if a browser can support
frames?


if (window.frames){
//the browser supports the frames collection
}


IE still returns the frames object when frames are disabled. So I guess you
could use this method to check if the browser *can* support frames, but to
check if the browser *does* support frames you would have to wrap a script
inside a NOFRAMES element.

--
Philip Ronan
ph***********@virgin.net
(Please remove the "z"s if replying by email)
Jul 23 '05 #4
Philip Ronan <ph***********@virgin.net> wrote in message news:<BD9CA64D.2429B%ph***********@virgin.net>...
abracad wrote:
Is it possible for a browser to support Javascript but not frames?


I can disable them independently in IE
If so, is it possible to use Javascript to test if a browser can support
frames?


<NOFRAMES>
<SCRIPT type="text/javascript">
alert("I guess so");
</SCRIPT>
</NOFRAMES>


Thanks. OOI how to disable frames in IE?
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by les | last post: by
40 posts views Thread by JohnnyCJohnny | last post: by
95 posts views Thread by Neal | last post: by
25 posts views Thread by Steal | last post: by
5 posts views Thread by Dfenestr8 | last post: by
7 posts views Thread by dj Bass | last post: by
3 posts views Thread by Nish | last post: by
56 posts views Thread by Deepan HTML | last post: by
14 posts views Thread by Mark | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.