Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- a:hover, a:active {
- background-color:red ;
- }
- </style>
- <form action="FirstTest" method="post" id="TestForm">
- <input type="text" id="PrintHere"/ ><br><br>
- <a target="_blank" onclick="SelectName('POST')"> Repository Link </a>
- </form>
- <script type="text/javascript">
- function SelectName(methodType) {
- var win=window.open("Popup.jsp", "thePopUp", "width=300,height=100, left=24, top=24, scrollbars, resizable");
- win.focus();
- }
- </script>
- <form id="PopUpForm">
- <input type="text" id="ddlNames"> <br /> <br />
- <input type="button" value="Select" onclick="SetName();" />
- </form>
- <script type="text/javascript">
- function SetName() {
- if ((window.opener != null) && !(window.opener.closed)) {
- var Textvalue;
- Textvalue.value = document.getElementById("ddlNames").value;
- var TextBox = window.opener.document.getElementById("PrintHere");
- TextBox.value = Textvalue.value
- }
- window.close();
- } </script>
- <form id="PopUpForm">
- <input type="text" id="ddlNames"> <br /> <br />
- <input type="button" value="Select" onclick="SetName();" />
- </form>
- <script type="text/javascript">
- function SetName() {
- if ((window.opener != null) && !(window.opener.closed)) {
- var TextBox = window.opener.document.getElementById("PrintHere");
- TextBox.value = document.getElementById("ddlNames").value;
- }
- window.close();
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement