473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Turn off Javascript in JavaScript or HTML

I have made a web site that works with both JScript on and off in every browser ...except Opera. I was wondering if there was some way to, upon detection of an Opera browser, turn off JScript on the page so that all the <noscript> HTML code will be run instead.

This is my first post on this site, and I hope I put this in the right place. Any help is greatly appreciated.
Jan 30 '07 #1
2 1775
mrhoo
428 256MB
<noscript> is only available if the user has turned off javascript.

Opera does a good job with most script. It would be better to localise the problem functions-

For instance, if you want to manipulate the styleSheets array, which Opera does not yet support, test for document.styleSheets before you run that particular function.
Jan 30 '07 #2
acoder
16,027 Expert Mod 8TB
I have made a web site that works with both JScript on and off in every browser ...except Opera. I was wondering if there was some way to, upon detection of an Opera browser, turn off JScript on the page so that all the <noscript> HTML code will be run instead.

This is my first post on this site, and I hope I put this in the right place. Any help is greatly appreciated.
Welcome to TheScripts. Yes, you've posted in the right forum.

As mrhoo mentioned, you can't turn off javascript on a user's browser. The user him/herself decides to turn off Javascript. When Javascript is off, the the code within the <noscript> tags is executed.

What exactly does not run? Perhaps you can post some code. I don't use Opera, but what I've heard about it, it seems to be pretty standard-compliant and so if you have coded correctly, it should work.
Jan 30 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
2
by: Eric Osman | last post by:
Hi, I'm looking for a javascript function that will convert input such as this: <CLUB Code=" into this: &lt;CLUB Code=&quot;
13
by: Csaba Gabor | last post by:
I'm not talking javascript hara-kiri here. I've got a database of web pages or snippets I've created and I'd like to display them in a table. So on my server (in PHP) I take all the files, and...
8
by: Michael Hill | last post by:
I have this input element: <input type='text' name='street' maxlength='20' size='20'> that I only want the user to be able to input to based on a item from a select list: <select...
6
by: ok | last post by:
I tried escape, but it is only good for the special ones like : / ' space etc. I want to turn every charactor into %xx then document.write them. I wonder if i can double % them so I can turn @...
3
by: Don | last post by:
Setting: chruch multimedia computer and projection system, with 2 display monitors. The projector is connected to monitor #2. Is there some way using JavaScript I can display a ".jpg" picture...
4
by: Malkavian | last post by:
hi. I have this in the header section of my web page. <EMBED SRC="g7wap cq.mp3" WIDTH=0 HEIGHT=0 hidden="true" AUTOSTART=true LOOP=TRUE ALIGN="CENTER" id="morsemp3" name="morsemp3"></EMBED> ...
0
by: kal | last post by:
Hi there I am hunting for way to turn off/disable active scripting especially javascript in my webbrowser control. I don't see any property to turn off script. I found entry in registry...
2
by: javamama | last post by:
Hi, I programmed a web page where two parallel maps can be explored with moving the cursor on the summer and winter buttons. The active button should turn red but now the right hand buttons turn...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.