[removed] sending custom parameters with window.open() but its not working

前端 未结 5 1613
一整个雨季
一整个雨季 2021-02-14 05:58




         


        
5条回答
  •  失恋的感觉
    2021-02-14 06:25

    You can try this instead
    
    
    var myu = document.getElementById('myu').value;
    var myp = document.getElementById('myp').value;
    window.opener.location.href='myurl.php?myu='+ myu +'&myp='+ myp;
    

    Note: Do not use this method to pass sensitive information like username, password.

提交回复
热议问题