Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript open window

window.open('page2.html')
Comment

window.open

<script type="text/javascript">
  function fnc1()
  {
      var a=window.location.href;

      username="p";
      password=1234;
      window.open(a+'?username='+username+'&password='+password,"");

      var url_safe_username = encodeURIComponent(username);
      var url_safe_password = encodeURIComponent(password);
      var url = "http://localhost:8080/login?cid=" + url_safe_username + "&pwd=" + url_safe_password;
      window.open(url);
  }   
</script>
<input type="button" onclick="fnc1()" />
Comment

window.open function

<script type="text/javascript">
function fnc1()
{
    var a=window.location.href;

    username="p";
    password=1234;
    window.open(a+'?username='+username+'&password='+password,"");

}   
</script>
<input type="button" onclick="fnc1()" />
<input type="text" id="atext"  />
Comment

PREVIOUS NEXT
Code Example
Javascript :: multiselect_3 
Javascript :: filter in javascipt 
Javascript :: how to copy object in javascript 
Javascript :: mongoose auto increment 
Javascript :: examples of Conditional Operator js 
Javascript :: how to disable security in jhipster 
Javascript :: how to transform object in string with scaped 
Javascript :: what is symbol in javascript 
Javascript :: Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". 
Javascript :: js min number in array 
Javascript :: check if an element is displayed jquery 
Javascript :: async function javascript dec 
Javascript :: javascript Strict Mode in Variable 
Javascript :: jsx else if statement 
Javascript :: angular http post example 
Javascript :: xslt remove node 
Javascript :: Make a program that filters a list of strings and returns a list with only your friends name in it.javascript 
Javascript :: split array in to equal parts and make 2 array javascript 
Javascript :: intellij debugger export object as json 
Javascript :: js set value in object only if defined 
Javascript :: $("#id").submit in vanilla 
Javascript :: js array entries 
Javascript :: image loading in Compose display image 
Javascript :: How to scan a folder for documents with javascript 
Javascript :: remove last element from an array 
Javascript :: javascript find prototype 
Javascript :: how to categorize a data in an array of object in javascript 
Javascript :: python run javascript 
Javascript :: js wrap function 
Javascript :: Datatable shows No data available in table in angular 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =