Copy codeThe Code is as follows: <script type = "text/javascript" language = "javascript">
Function CCCC (){
Var File_NAME = "";
Var count = 0;
If (document. frames ("myFrame" example .doc ument. all. length ){
For (var I = 0; I <document. all. length; I ++ ){
If (document. frames ("myFrame" mirror.doc ument. all (I ). type = 'checkbox' & document. frames ("myFrame" mirror.doc ument. all (I ). checked = true ){
File_NAME = document. frames ("myFrame" 2.16.doc ument. all (I). value;
Alert (File_NAME );
Count ++;
}
}
}
If (count = 1 ){
Var url = "<% = path %>/AttSSSS? File_NAME = "+ File_NAME;
Var returnValue = showModalDialog (url, "AttSSSS", "dialogWidth: 700px; dialogHeight: 500px; dialogLeft: 400px; dialogTop: 200px; center: yes; help: yes; resizable: yes; status: yes ");
If (returnValue ){
Window. location. href = window. location. href;
}
}
Else if (count <1 ){
Alert ('You have not selected any information. Please click the entry you want to select! ');
}
Else {
Alert ('only one message can be selected at a time! ');
}
}
</Script>