[RESOLVED] Firefox and IE
Code:
<td align="right"><input class="navmenu" id="return" type="button" value="戻る" onclick="doProcess(this.id)"></td>
this code, will execute doProcess in IE, but not in FX why?
the doProcess function is
Code:
function doProcess(process){
var aform = document.forms(0);
alert("javascript called");
if(process == "return"){
window.top.location = "manage.html";
}
}
:cry:
Re: [RESOLVED] Firefox and IE
This is the last time we let you post a programming question in Chit Chat. The next time, we'll get the pitchforks out. :afrog:
Re: [RESOLVED] Firefox and IE
LOL... okies okies.. I know I went overboard this time. :'( SORRY SIR... *salutes and stalks off*. :p
Re: [RESOLVED] Firefox and IE
Believe it or not, IE understands this code! Wayback Machine to kaenkoski.net
Now, take a look into the menu in the left. If you use anything else than IE, you probably notice you can click only one of the links. However in IE all links work just fine. Open the frame source and take a look into the way the links are formatted, especially when links open and close... and then start wondering how IE figures how to display as creator of the site has intended.
Re: [RESOLVED] Firefox and IE
Re: [RESOLVED] Firefox and IE
Don't you just love IE?? In theory, if you enclose your script in <script type="text/javascript"></script> it should force IE to be strict with the syntax.
Of course with Internet Explorer its not a case of "monkey say, monkey do" ;) :D
Re: [RESOLVED] Firefox and IE
Quote:
Originally Posted by oceanebelle
why won't it work on Fx?
Becuase its invalid Javascript code - it is not however invlaid Jscript code. ;)
Re: [RESOLVED] Firefox and IE
so if I take out meta tag "text/javascript"... in theory would that be okey, for Fx that is?
Re: [RESOLVED] Firefox and IE
No, just in IE. It should force IE to be strict and ensure that it is valid Javascript.
Internet Explorer by default uses JScript, which is not Javascript. JScript includes its own DOM and i not sctrict about things like semi colons and array syntax. Firefox complies with the W3C standard of Javascript nad does not know what JScript is, therefore it won't work.
Re: [RESOLVED] Firefox and IE
Thanks for clearing it all up, Adam. ;)