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

Last change on this file since 110 was 110, checked in by niko, 14 years ago

#216
InsertAncor? as dialog

File size: 1.2 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 onCancel() {
29  __dlg_close(null);
30  return false;
31};
32</script>
33</head>
34
35<body onload="Init()">
36<div class="title">Insert Anchor</div>
37<form>
38<table border="0" style="width: 100%;">
39  <tr>
40    <td class="label">Anchor name</td>
41    <td><input type="text" id="name" style="width: 100%" /></td>
42  </tr>
43</table>
44
45<div id="buttons">
46  <button type="submit" name="ok" onclick="return onOK();">OK</button>
47  <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
48</div>
49</form>
50</body>
51</html>
Note: See TracBrowser for help on using the repository browser.