-
Notifications
You must be signed in to change notification settings - Fork 28
/
share.html
26 lines (24 loc) · 997 Bytes
/
share.html
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
26
<!DOCTYPE html>
<html>
<head>
<link id="siteicon" rel="icon" href="./icon.png"/>
<link rel="stylesheet" href="./sidebar.css"/>
<title>Demo Share Window</title>
<script src="js/jquery-1.11.1.min.js"></script>
<script src="./share.js" type="text/javascript"></script>
</head>
<body onload="onLoad()">
<div id="content">
<h3>This window shares the url</h3>
<div>Sharing: <div id="shared" class="textbox"></div></div>
<div>Data: <div id="data" class="textbox"></div></div>
<button onclick="share();">Share!</button>
<ul>These links should open in tabs:
<li><a href="http://www.mozilla.org" target="_blank">external _blank</a></li>
<li><a href="http://www.mozilla.org" target="_content">external social</a></li>
<li><a href="http://www.mozilla.org">external none</a></li>
<li><a href="http://www.mozilla.org" onclick="window.open(this.getAttribute('href'),'socialtab').focus(); return false;">external onclick</a></li>
</ul>
</div>
</body>
</html>