Click to See Complete Forum and Search --> : Open the webpage without scrollbar,location...


ntcmlee
12-03-2003, 09:56 PM
Dear all,

I have a html code like

<a href="product.html" target=new>product</a>

Although the file "product.html" can be linked at the new page, but with
scrollbar, menu, location, and so on, please help me to write the javascript code or others in order to remove all such features when open this page,
thanks.

Regards,
Simon

tk_Sajesh
12-03-2003, 10:16 PM
Check out this code.

window.open("","displayWindow","menubar=no,scrollbars=no,status=no,width=300,height=300");

pyro
12-03-2003, 10:48 PM
http://www.webdevfaqs.com/javascript.php#popup

fredmv
12-03-2003, 11:04 PM
Originally posted by ntcmlee
remove all
You want to remove all of the features on the new window? All you need to do is something like this:window.open('foo.html', 'child', 'height=300,width=300,scrollbars=1');Notice I didn't define any features other than the height and width and scrollbars (in case the content is too long) for the third argument of the function, remember that they're all off by default.