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 :: multiple ternary operator javascript 
Javascript :: conditional operator 
Javascript :: how to manually trigger browser back button from angular 
Javascript :: create object from number 
Javascript :: display none y display block infinito con javascript 
Javascript :: javascript split a string 
Javascript :: js destructuring 
Javascript :: js detect mouse support 
Javascript :: send data with emit angular 
Javascript :: Does my number look big in this? js 
Javascript :: sort string mixed with numbers javascript 
Javascript :: puppeteer set up code 
Javascript :: math.round 
Javascript :: how to give args type in nestjs graphql for array of input 
Javascript :: last array 
Javascript :: string properties in javascript 
Javascript :: one signal api to send notification 
Javascript :: axios get array of urls 
Javascript :: java script or js circle collision 
Javascript :: javascript dom after a element 
Javascript :: create owl component react js 
Javascript :: promises chaining 
Javascript :: react native share link 
Javascript :: multiple replace 
Javascript :: prevent vscode debugger from entering node module 
Javascript :: hide screen links in drawerNavigation in react native 
Javascript :: angular2-tree-diagram 
Javascript :: react router params and render 
Javascript :: reduce in javascript 
Javascript :: function js 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =