diaplay html page before executing js code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • max

    diaplay html page before executing js code

    Hi,

    I've developed some HTML pages with js language.
    In one of the pages, I execute some functions which take a long time
    when the page is charging.
    So, the page is displayed after all the code is executed. So, during
    the code is executed, the previous page continues to be displayed.
    So, is there any way to force the page to be displayed before the js
    code is executed ???

    Many thanks in advance for your help.
  • E Michael Brandt

    #2
    Re: diaplay html page before executing js code

    Call your code with the body's onload event. It will not be called
    until the page is fully loaded.

    --

    e michael brandt
    michael at valleywebdesign s.com
    www.valleywebdesigns.com ::: home of justso picturewindow & photoalbum

    --



    max wrote:[color=blue]
    > Hi,
    >
    > I've developed some HTML pages with js language.
    > In one of the pages, I execute some functions which take a long time
    > when the page is charging.
    > So, the page is displayed after all the code is executed. So, during
    > the code is executed, the previous page continues to be displayed.
    > So, is there any way to force the page to be displayed before the js
    > code is executed ???
    >
    > Many thanks in advance for your help.[/color]

    Comment

    Working...