Works fine in IE, but not in Firefox? Code below, thank you in advance....
http://www.cnusd.k12.ca.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpavelgcy.html
<SCRIPT LANGUAGE=vbscript>
function callMsgBox2(strMsg)
callMsgBox2 = msgBox(strMsg,4,"Leaving ERHS")
end function
</SCRIPT>
<SCRIPT LANGUAGE=javascript>
function callMsgBox1(strMsg){
var retVal = callMsgBox2(strMsg);
var response = retVal
if (response == 6){
window.location.href = 'http://www.bricksrus.com/order/erhs/index.htm' }
else {
window.location.href = 'http://www.cnusd.k12.ca.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
7 5377
callMsgBox2 undefined Firefox error console, works in IE ... help
--------------------------------------------------------------------------------
Works fine in IE, but not in Firefox? Code below, thank you in advance....this is for our school website. ine 66 is the code line error.
http://www.cnusd.k12.ca.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpavelgcy.html
<SCRIPT LANGUAGE=vbscript>
function callMsgBox2(strMsg)
callMsgBox2 = msgBox(strMsg,4,"Leaving ERHS")
end function
</SCRIPT>
<SCRIPT LANGUAGE=javascript>
function callMsgBox1(strMsg){
var retVal = callMsgBox2(strMsg);
var response = retVal
if (response == 6){
window.location.href = 'http://www.bricksrus.com/order/erhs/index.htm' }
else {
window.location.href = 'http://www.cnusd.k12.ca.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
Works fine in IE, but not in Firefox? Code below, thank you in advance....
http://www.cnusd.k12.ca.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpavelgcy.html
<SCRIPT LANGUAGE=vbscript>
function callMsgBox2(strMsg)
callMsgBox2 = msgBox(strMsg,4,"Leaving ERHS")
end function
</SCRIPT>
<SCRIPT LANGUAGE=javascript>
function callMsgBox1(strMsg){
var retVal = callMsgBox2(strMsg);
var response = retVal
if (response == 6){
window.location.href = 'http://www.bricksrus.com/order/erhs/index.htm' }
else {
window.location.href = 'http://www.cnusd.k12.ca.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
Moved to Javascript forum.
Works fine in IE, but not in Firefox? Code below, thank you in advance....
http://www.cnusd.k12.ca.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpavelgcy.html
<SCRIPT LANGUAGE=vbscript>
function callMsgBox2(strMsg)
callMsgBox2 = msgBox(strMsg,4,"Leaving ERHS")
end function
</SCRIPT>
<SCRIPT LANGUAGE=javascript>
function callMsgBox1(strMsg){
var retVal = callMsgBox2(strMsg);
var response = retVal
if (response == 6){
window.location.href = 'http://www.bricksrus.com/order/erhs/index.htm' }
else {
window.location.href = 'http://www.cnusd.k12.ca.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
vbscript is IE-specific. It is not Javascript and will only work in IE. Just use a normal alert instead.
Changed thread title slightly
Merged threads only because there was a bit more information in one post otherwise it would have been deleted. Please do not double-post.
Merged threads only because there was a bit more information in one post otherwise it would have been deleted. Please do not double-post.
Thanks, sorry. I wanted to delete the first post because I thought I placed it in the wrong thread.
Thanks, sorry. I wanted to delete the first post because I thought I placed it in the wrong thread.
That's ok. We want to clean threads up so that we don't have multiple threads floating around.
Re. your problem: you could detect if the object is supported and allow vbscript for IE and a normal alert for the rest of the browsers.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Reza Roby |
last post by:
The following code reports a runtime error "v has no properties."
function ff()
{
var v;
v.x=5; //error
alert(v.x);
}
But this one alerts "undefined":
|
by: LRW |
last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the
posting--I don't know if the message going out or not)
For some reason this javascript just won't work in Firefox. It works
fine...
|
by: Chuck Martin |
last post by:
I am having a most frustrating problem that references, web searches,
and other resources are no help so far in solving. Basically, I'm trying
to design a pop-up window to be called with a funciton...
|
by: Derek Erb |
last post by:
I am banging my head against the wall with this one. The following
code snippets work perfectly fine in MSIE6. But produce an error in
Firefox and do not work at all.
BROWSER.HTM
<HTML>
.......
|
by: niconedz |
last post by:
Hi
The following code works fine in IE but not Firefox.
It's a little script that zooms an image and resizes the window to fit.
Can anybody tell me what's wrong?
Thanks
Nico
== btw.....
|
by: Frances |
last post by:
I have an html file, checked css syntax online
(http://jigsaw.w3.org/css-validator/validator-uri.html.en)
it all checks fine, got no errors or warnings.. however Firefox is not
reading...
|
by: roN |
last post by:
Hi,
I got following: http://www.inetgate.ch/design.htm
It works in Firefox and in Netscape nice 'n fine but not in Explorer...why
not? What to change? Thank you!
--
chEErs roN
I'm root, I'm...
|
by: OtisUsenet |
last post by:
Hi,
I have a bookmarklet that works perfectly in Firefox, IE, Konqueror,
and Opera, but in Safari 2.0.3 (417.9.2) it doesn't work. I enabled
debugging and I can see "TypeError - Undefined...
|
by: Wayne Deleersnyder |
last post by:
Hi All,
I'm hoping to try to solve this error. I'm currently putting together
a little web app, but I need it to work under both IE6, IE7, Mozilla,
etc... Although the formatting is off for...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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: 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...
|
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,...
|
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...
| | |