Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling buttons until page completed loading.

Status
Not open for further replies.

soonkhoo

Programmer
Dec 8, 2000
133
MY
Hi, in reference to the subject, I was wondering, if it's possible, to disable the entire content of the page with or without frames until everything have completed loading. This includes audio as well. Thanks.
 
You could just disable the buttons regularly in the tags such as:

<INPUT id=submit1 disabled type=submit value=Submit name=submit1>

then, make a javascript function like this:

function enableMe(){
document.formName.submit1.disabled = false;
}

and then call it onLoad like this:
<body onLoad=&quot;enableMe();&quot;>

That should do it

:)
Paul Prewett
 
Audio, I use Windows Media Player to embed. It's using mp3 format instead of midi. Perhaps that's why it's slower for a 56k.
 
Here's a silly question --

can you not just embed the audio at the bottom of the page, so that it will be the last thing loaded, and then once it's loaded, the button(s) will enable itself???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top