buckDharma
Programmer
Hello
I am trying to resize a new window in the javascript and not assign the href the new window size - heres what I mean:
so what I mean is - can I put the size of the new window in the "NewPage +=" ? I am not sure how that would look - maybe even have it in a new position on the page?
Thanks
Rob
I am trying to resize a new window in the javascript and not assign the href the new window size - heres what I mean:
Code:
function createNewWindow () {
var userName = document.getElementById('user_name').value
var newPage = "<html><head><title>"
newPage += userName;
newPage += "</title></head><body>";
newPage += "<p>Here is the info you typed in: " + userName;
newPage += "</p></body></html>";
var j = window.open('')
j.document.write(newPage);
j.document.close();
}
Thanks
Rob