aboutsummaryrefslogtreecommitdiff
path: root/node_modules/selenium-webdriver/lib/test/data/sessionCookie.html
blob: 0ada24ed3cae9eaeccf26029c2ee3be98571b82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">
    function setcolor(what){
        document.body.style.backgroundColor=what
        document.cookie="bgcolor="+what
    }
    
    function popuponclick() {
        my_window = window.open("sessionCookieDest.html", "cookiedestwindow", "status=1,width=350,height=150");
    }  
    </script>
</head>
<body>
    <input id="setcolorbutton" type="button" value="Set Background Color" onclick="setcolor('#80FFFF')"/>
    <input id="openwindowbutton" type="button" value="Open New Window" onclick="popuponclick()"/>
</body>
</html>