Okay! so what i'm trying to do is make this table appear only in firefox here's my code
Why isn't it working?HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Appear In Firefox</title> <script type="text/javascript"> if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)) { document.getElementById('Table').style.display='block'; } </script> </head> <body> <table width="200" border="1" id="Table" style="display:none;"> <tr> <td> </td> </tr> </table> </body> </html>
Any Help is appreciated



Reply With Quote


Bookmarks