window.open(url,"_blank_");
I have a sensitive parameter in the url (a password), is it possible to change the shown url on the addressbar in the opened window/tab?
window.open(url,"_blank_");
I have a sensitive parameter in the url (a password), is it possible to change the shown url on the addressbar in the opened window/tab?
<form method="POST" action="url" target="_blank">
<input type="password" name="password" />
</form>
EDIT:
Same, done with javascript:
function navigate(url, data, method){
var form = document.createElement('form');
form.setAttribute('method', method);
form.setAttribute('action', url);
for(var name in data){
var hidden = document.createElement('input');
hidden.setAttribute('type', 'hidden');
hidden.setAttribute('name', name);
hidden.setAttribute('value', data[name]);
form.appendChild(hidden);
}
document.body.appendChild(form); // Does not need this line in chrome
form.submit();
}
Usage:
navigate('url', { password: 'mypassword' }, 'POST');
Use this syntax
window.open(URL,name,specs,replace)
refer this document for more information http://www.w3schools.com/jsref/met_win_open.asp