source: trunk/plugins/InsertAnchor/popups/insert_anchor.html @ 240

Last change on this file since 240 was 240, checked in by gocher, 14 years ago

Slight correction for changeset:239

File size: 1.5 KB
Line 
1<html>
2<head>
3  <title>Insert Anchor</title>
4  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
5  <script type="text/javascript" src="../../../popups/popup.js"></script>
6  <script type="text/javascript">
7    window.resizeTo(300, 150);
8
9function Init() {
10  __dlg_translate("InsertAnchor");
11  __dlg_init();
12  window.resizeTo(400, 180);
13  var param = window.dialogArguments;
14  if (param) {
15    document.getElementById("name").value = param["name"];
16  }
17  document.getElementById("name").focus();
18};
19
20function onOK() {
21  // pass data back to the calling window
22  var param = new Object();
23  param["name"] = document.getElementById("name").value;
24  __dlg_close(param);
25  return false;
26};
27
28function onDelete() {
29  // pass data back to the calling window
30  var param = new Object();
31  param["name"] = "";
32  __dlg_close(param);
33  return false;
34};
35
36function onCancel() {
37  __dlg_close(null);
38  return false;
39};
40</script>
41</head>
42
43<body class="dialog" onload="Init()">
44<div class="title">Insert Anchor</div>
45<form>
46<table border="0" style="width: 100%;">
47  <tr>
48    <td class="label">Anchor name</td>
49    <td><input type="text" id="name" style="width: 100%" /></td>
50  </tr>
51</table>
52
53<div id="buttons">
54  <button type="submit" name="ok" onclick="return onOK();">OK</button>
55  <button type="button" name="delete" onclick="return onDelete();">Delete</button>
56  <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
57</div>
58</form>
59</body>
60</html>
Note: See TracBrowser for help on using the repository browser.