p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript How-To (http://p2p.wrox.com/forumdisplay.php?f=87)
-   -   scrollable window (http://p2p.wrox.com/showthread.php?t=25382)

crmpicco February 10th, 2005 11:24 AM

scrollable window
 
onClick="javascript: window.open(this.href,'name','650','500','yes',scr ollable='yes');return false;"

will this give me a scrollable window?

picco

www.crmpicco.co.uk

Vadivel February 10th, 2005 02:07 PM

<html>
<script>
function PopUp()
{
window.open("decimal.html",'name','650','500','yes ',scrollable='yes')
}

</script>
<body>
<a href="#" onClick="javascript:PopUp();">Open PopUp Window</a>
</body>
</html>

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com

ChrisScott February 11th, 2005 03:56 AM

Hi Picco,

The window.open method takes parameters (url, name, features), so you need...
Code:

onclick="window(yourHref, yourWindowName, 'scrollbars=yes'); return false;"
There is no need for the "javascript:"
Other features of the window you can control can be found here: http://www.javascript-coder.com/wind...dow-open.phtml

HTH,

Chris



All times are GMT -4. The time now is 02:17 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.