1. rexgoode's Avatar
    I'm having a problem with a web page I'm building. The browser isn't cooperating.

    I have a BB Curve on Verizon.

    The web page is simple for now. I'm just trying to get javascript to tell me what the current CSS stylesheet is.

    The source code of the page is simple.

    <html><title>Test</title>
    <head>
    <link rel=stylesheet href=/css/site.css>
    <script lang=javascript>
    <!--
    var s = document.styleSheets[0];
    alert(s.href);
    -->
    </script>
    </head><body></body></html>

    On my desktop, several browsers do what I expect. It makes a pop up with "/css/site.css" in it.

    On the bb browser, I get nothing. It just goes to a blank page. Javascript is enabled.

    Opera Mini works right, except that it shows the whole domain name before the styesheet file path.
    Last edited by rexgoode; 12-16-09 at 11:00 AM.
    12-16-09 10:54 AM
LINK TO POST COPIED TO CLIPBOARD