source: trunk/plugins/PasteText/popups/paste_text.html @ 463

Last change on this file since 463 was 463, checked in by mokhet, 14 years ago

the textarea was referenced by ID instead of using document.getElementById

File size: 1.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4  <title>Paste Text</title>
5  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
6  <script type="text/javascript" src="../../../popups/popup.js"></script>
7<script language="javascript">
8
9function _CloseOnEsc(event) {
10  if ( event.keyCode == 27 ) {
11    window.close();
12    return;
13  }
14}
15
16function Init() {
17  __dlg_translate("PasteText");
18  __dlg_init();
19  window.resizeTo(600, 450);
20  var param = window.dialogArguments;
21  document.getElementById("SCREEN").focus();
22}
23
24function onCancel() {
25  __dlg_close( null );
26  return false;
27}
28
29function onOK() {
30  var ret = document.getElementById("SCREEN").value;
31  __dlg_close( ret );
32}
33</script>
34</head>
35
36<body class="dialog" onload="Init();">
37<div class="title">Paste as Plain Text</div>
38<textarea name="SCREEN" id="SCREEN" cols=22 rows=5 style="width: 100%; height: 315px; margin-top: 8px; margin-bottom: 4px; font-family: monospace; font-size: 11px;"></textarea>
39<div id="buttons">
40    <button type="submit" name="ok" onclick="return onOK();">OK</button>
41    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
42</div>
43</body>
44</html>
Note: See TracBrowser for help on using the repository browser.