471,089 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Detecting Script enabled or not in Client Browsers

Hi,

I'm having a very genuine problem: I'm developing an ASP.NET web
application. Since I'm using a lot of Javascripts in my pages, I want to
ensure that my clients do not disable Script in settings. If they do so, I
need to give them a warning. Any insight into this is higly appreciated.

Thanks very much in advance.
--
Samba!
Nov 19 '05 #1
4 1052
Hi,

Could you not use javascript set a value (hidden form field?) on load in the
page and check on postback if that value has been set?

"Samba" wrote:
Hi,

I'm having a very genuine problem: I'm developing an ASP.NET web
application. Since I'm using a lot of Javascripts in my pages, I want to
ensure that my clients do not disable Script in settings. If they do so, I
need to give them a warning. Any insight into this is higly appreciated.

Thanks very much in advance.
--
Samba!

Nov 19 '05 #2
Thanks adam, it did work. Its a good idea.
--
Samba!

Nov 19 '05 #3
Determine on the first page if javascript is enabled, forexample:
<html>

<script>
document.location.href = "start.aspx"
</script>

Sorry, you need javascript to be enabled.

</html>

Marcel van Eijkel
(www.vaneijkel.com)

Nov 19 '05 #4
Might be worth noting that most search engine spiders ignore javascript, so
for good SEO you need to provide good alternative content...

Rob
"Marcel" <ma*************@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
Determine on the first page if javascript is enabled, forexample:
<html>

<script>
document.location.href = "start.aspx"
</script>

Sorry, you need javascript to be enabled.

</html>

Marcel van Eijkel
(www.vaneijkel.com)

Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Astra | last post: by
2 posts views Thread by tmb | last post: by
20 posts views Thread by Mandy Memphis | last post: by
25 posts views Thread by Ryan Stewart | last post: by
2 posts views Thread by Barry | last post: by
1 post views Thread by Grzegorz Klimsa | last post: by
12 posts views Thread by Anic297 | 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.