File: within_popups.erb

package info (click to toggle)
ruby-capybara 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 948 kB
  • ctags: 516
  • sloc: ruby: 7,998; makefile: 4
file content (25 lines) | stat: -rw-r--r-- 634 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
    <head>
        <title>With Popups</title>
        <script language="javascript" type="text/javascript">
        <!--

        function popItUp(name, url) {
          newwindow=window.open(url,name,'height=200,width=150');
          if (window.focus) { newwindow.focus() }
          return false;
        }

        function init() {
          popItUp('firstPopup', '/popup_one');
          popItUp('secondPopup', '/popup_two');
        }
        window.onload = init; 

        // -->
        </script>
    </head>
    <body>
        <div id="divInMainWindow">This is the text for divInMainWindow</div>
    </body>
</html>