Link to home
Start Free TrialLog in
Avatar of anandnerkar
anandnerkar

asked on

Please wait.... message before the page load

Does anyone know how to show a "please wait..." message until the page load was finished?

I have an image button on a page called 'Take Test'. But loading of test page takes some time. So I want to show "Please wait ...page loading" text above the image button.

Thanks in advance.
Avatar of mattjp88
mattjp88
Flag of United States of America image

here is something I found from Google, it seems to do what you want. http://wsabstract.com/script/script2/preloadimage2.shtml

-Matt
Avatar of ho_alan
ho_alan

Avatar of anandnerkar

ASKER

Hey thanks for quick reply... but I dont want image preload code.

I have a page which has "Take test" image button. On click it starts to load a test i,e question pages. This page is very large so it takes time to download. So after button click I want to show 'Please wait....' text above the image button itself untill the question page load was finished.
<html>

<head>
<title>Load Test</title>
<Script>
function kk() {
document.getElementById("s").style.visibility = "visible"
}
</Script>
</head>

<body topmargin="0" leftmargin="0" onLoad="kk()">
Loading...
<div id="s" style="visibility:hidden">
<p><img border="0" name="ss" src="img1.jpg" width="800" height="600"></p>
</div>

</body>

</html>
so b/w the DIV tag is your Page Content.
And Customize your Loading.. message to anything you want.
ASKER CERTIFIED SOLUTION
Avatar of NetGroove
NetGroove

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial