Im trying to open a new window "onload" using HTML, I just found this code and tried it <body onload=window.open('http://www.yahoo.com/');return true;> it does work but i want to resize the window like the width and the height of the new window Heres the link to the page that i made using the code http://designstattoono1.com/testpagepopup/ cheers
window.open is javascript, not HTML You did not use Google... http://www.javascript-coder.com/window-popup/javascript-window-open.phtml By the way, your code does not work in Google Chrome browser
I think to resize it you will need to write: <body onload=window.open('url of the link', 'title of the link' 'width=200px,height=200px');return true;> That will open the window to 200px wide and 200px high. I don't think it will have any scroll bars, or browser navigation though. <body> Is an HTML tag, and the onload and everything else inside the tag is Javascript code. I'm just now learning it, and if what you have written is working as a pop-up on load, then what I added should work also and specify the height and width. I don't think it is entirely correct though.