English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

......i am looking for a javascript to close a window after a file is loaded or javascript to refuse any more file loads after the first one completes....

2006-06-17 22:52:39 · 2 answers · asked by mystiq68 1 in Computers & Internet Programming & Design

or HTML code *** or HTML code

2006-06-17 22:53:31 · update #1

2 answers

it should be == "complete" not =

2006-06-19 02:06:54 · answer #1 · answered by knitting guy 6 · 3 0

you mean something like this?

document.onreadystatechange = init;
function init(){
if(event.readyState = "complete")
window.close();
}

2006-06-18 06:08:32 · answer #2 · answered by Deep Thought 5 · 0 0

fedest.com, questions and answers