I have two issues:
1- I have written following code a code that works in IE but not in firefox. Please see code below. JavaScript version is 1.3. Both browsers should be able to run the script?
Expand|Select|Wrap|Line Numbers
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
- <html>
- <style type="text/css">
- table {border-collapse: collapse; }
- TEXTAREA {width:300px; height:200px; border: 0; overflow:hidden;}
- td {width:30px;padding: 0; margin: 0; border: 1px solid gray;}
- </style>
- <script Language="javascript">
- function setBorderBold(x)
- {
- document.getElementById(x).style.border="0.20em black solid";
- }
- function setBorderToStandard(x)
- {
- document.getElementById(x).style.border="0.05em solid gray";
- }
- </script>
- <body>
- <form>
- <table bordercolor="gray"><tr><td id="myid1"><TEXTAREA name="thetext" id="textarea1" onfocus="setBorderBold('myid1')" onblur="setBorderToStandard('myid1')"></textarea></td><td id="myid2"><TEXTAREA name="thetext" maxwidth="400em" id="textarea1" onfocus="setBorderBold('myid2')" onblur="setBorderToStandard('myid2')"></textarea></td></tr></table>
- </form>
- </body>
- </htm>
Or is there something like a "javaScript Plugin" for browsers, so that each browser could run any version of Javascript provided the plugin is installed?Maybe a silly question, but am a beginner :)
Regards
Bu