Today, a dialog box is displayed with showmodaldialog, but the preceding labels cannot be copied,
1. htm
<HTML>
<Body>
<Input type = "button" onclick = "commandid showmodaldialog('2.htm','', '');"/>
</Body>
</Html>
2. htm
<HTML>
<Body>
Select the text and copy it.
</Body>
</Html>
Check and find out several solutions: first, replace the label with a text box.
The other is to add a segment to the tag.Code:
2. htm
<HTML>
<Body>
<Span id = "lab1"> select and copy the text </span>
<SCRIPT>
Document. All ["lab1"]. contenteditable = "true ";
</SCRIPT>
</Body>
</Html>
Contenteditable = true is to change the content to the design mode, which can be copied or modified. The default value is "inherit ". Applications are available in some areas with strong custom functions. If the contenteditable of the entire body is changed to true, the content in the body can be pulled in disorder, which is not good for my application this time.