Entry
How to open a window with only Vertical scrollbar?
Apr 8th, 2008 18:17
ha mo, Abolfazl Shirazi, Manoj Jain,
Abolfazl Shirazi :
You just need to know that in stylesheet, overflow has some shapes
like overflow-x and overflow-y and you can set them hidden or visible .
In your question we should just set overflow-x : hidden !!!
Try It :
<html>
<head>
<script language="javascript" type="text/javascript">
function OpenIt() {
testWindow=window.open
("","testWin","width=400,height=100,scrollbars=yes,resizable=yes")
testWindow.document.write("<html><body style='overflow-
x:hidden'><pre>this window just have vertical scrollbars !!! this
window just have vertical scrollbars !!! this window just have
vertical scrollbars !!! this window just have vertical scrollbars !!!
</pre><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><
/body></html>")
}
</script>
</head>
<body onload="OpenIt()">
</body>
</html>
Enjoy It !
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com