Hi
I have developed website using php and mysql and in that I have used JavaScript as well. I tried to run this website on different computer and set its browser's Active Scripting disabled. so javascript is not working on that system. Now what i wanted that if user's javascript/active scripting is disbaled then it should prompt user to enable it or it enable automatically. How can i do this?
10 3703
you can’t enable it automatically, but you can leave a note either using <noscript> or any element that you remove via javascript.
@Dormilich
How mean what will be the exact code to do it
@mukeshrasm
indeed, if I want JavaScript off, no-one but me is allowed to turn it back on.
LOL, I don't think that was what he meant!
mukeshrasm, have you tried looking at the use of the noscript tag?
@acoder
Hi Yes I am looking the use of noscript tag and how can I prompt user to enable Active Scripting if it is disabled
@mukeshrasm
see post #2.
prompt() is a JavaScript method, i.e. it only works with JavaScript enabled.
If by prompt, you simply mean a message to be displayed, the <noscript> tag is perfect for that task: - <noscript>You can browse this site without having JavaScript enabled, but to experience the full benefits of the site, please enable JavaScript.</noscript>
for the standardista among us:
<noscript> requires to have only block level elements as content (children) - <noscript>
-
<p>your message</p>
-
</noscript>
Thanks, I was going to put the <p> tag in, but forgot.
the browser wouldn’t have cared anyway, until you ask it to use the XHTML parser.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Jane Austine |
last post by:
I donwloaded win32all for Python 2.3 and installed it.
I manually run pyscript.py and it returned "successfully registered"
message.
For a simple test(on client side), I created the following...
|
by: Dr John Stockton |
last post by:
The following DOS prompt command line, in a Win98 DOS box,
cscript //nologo ~tmp.js
executes file ~tmp.js as javascript/Jscript.
The following batch file, similarly run, executes the same....
|
by: Oscar |
last post by:
I am quite new to the ASP scene. I want to display the results of a
recordset into a third party grid control called VSFlexgrid. I've prepared
one asp page which queries an Access database and...
|
by: James |
last post by:
Are there any classes in c# for this or am I left to use the com interface,
which I'm not sure how.
And if I have this will it work on a machine that someone has disabled
scripting?
Finally,...
|
by: joemac |
last post by:
I'm just starting out with javascript and the following is not working
as it should. The expected prompt dialog box never appears.
<head>
<script language="JavaScript"><!--
var name;...
|
by: Mantorok |
last post by:
Is there any way, from ASP, ASP.Net or client-side scripting, to determine
whether the browser has client-scripting disabled?
Thanks
Kev
|
by: Pablito |
last post by:
Hi at all
I have an input type=submit
I want that in certain cases this button is visible but non active
How can I do please?
Regards
Pab
|
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...
|
by: =?Utf-8?B?UmFq?= |
last post by:
I am trying to develop a web page, when loaded it should prompt for
installing ActiveX control using Internet Explorer information bar help but I
am getting a prompt message "windows has blocked...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
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$) {
}
...
|
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...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |