Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript js in chrome and firefox

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #168684
    alpkank
    Participant

    I have a simple javascript that does not work in Firefox nor Chrome. It worked with Safari. I was wondering how I can get it work in Chrome and Firefox also. Thank you.

    <script>
    function resize() {
    window.moveTo(0,0)
    window.resizeTo(screen.availWidth, screen.availHeight)
    }
    </script>

    <body onLoad=”resize()”>

    #168685
    Paulie_D
    Member
        function resize() {
            window.moveTo(0,0)
            window.resizeTo(screen.availWidth, screen.availHeight)
        }
    

    Codepen says you are missing some semi-colons

        function resize() {
            window.moveTo(0,0) ;
            window.resizeTo(screen.availWidth, screen.availHeight );
        }
    

    after that, I’m lost.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.