p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 (http://p2p.wrox.com/forumdisplay.php?f=174)
-   -   Resizing and moving new window through opener (http://p2p.wrox.com/showthread.php?t=68153)

Gajender May 16th, 2008 01:15 AM

Resizing and moving new window through opener
While studying "Navigating and opening new windows" under section "The window object", Chapter:5(JavaScript in the Browser), Page No:142 Book title: "Professional JavaScriptâ„¢ for Web Developers" by Nicholas C. Zakas, Wiley Publishing Inc. , I found following code which doesn't work actually.

var oNewWin = window.open("http://www.wrox.com/","wroxwindow",
"height=150,width=300,top=10,left=10,resizable=yes ");
oNewWin.moveTo(100, 100);
oNewWin.resizeTo(200, 200);

You can't move or resize the new opened window through 'oNewWin'. It gives "Permission denied" error.
You can only close that window by

Can anyone tell me the way to do this?


Harjinder July 22nd, 2008 05:48 AM

i m new in javascript would you pleeeeeeeez tell me how to declare globar variable in javascript


jminatel July 22nd, 2008 08:40 AM

Harjinder: Since your question isn't directly related to the book we're discussing in this forum, it would be better posted in our general JavaScript forum as a new thread:


Jim Minatel
Acquisitions Director
Wiley Technology Publishing
WROX Press
Blog: http://wroxblog.typepad.com/
Wrox online library: http://wrox.books24x7.com

All times are GMT -4. The time now is 09:17 AM.

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