Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > BOOK: Beginning JavaScript
|
BOOK: Beginning JavaScript
This is the forum to discuss the Wrox book Beginning JavaScript by Paul Wilton; ISBN: 9780764544057
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2003, 06:56 PM
Authorized User
 
Join Date: Oct 2003
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Controlling width, height and top of new window?

I am working with the Trivia Quiz in the Beginners JavaScript book. The following is an example of the setup for asking a question in the test:
// define question 3
questions[2] = new Array();
questions[2][0] = "Electrical resistance is measured in?";
questions[2][1] = "Amps";
questions[2][2] = "Ohms";
questions[2][3] = "Volts<a href=../q3_ap1.htm target=_blank><img src=reference_button.gif border=0></a>";
questions[2][4] = "Watts";

// assign answers for question 3
answers[2] = "B";

What I am using to open the new windows (in red) works to open a separate window but does not give me the option to set the height, width, top, etc. I have tried different code to open a new window but all that I have tried use the (")quote mark somewhere within them and this gives me a js error and keeps the whole thing from working. Any suggestions would be appreciated!

Thanks





__________________
Rudy
 
Old November 2nd, 2003, 07:22 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

http://msdn.microsoft.com/library/de...asp?frame=true

Search under methods of window object, open.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I get width/height of a picture? keyvanjan Classic ASP Basics 2 May 29th, 2006 07:29 AM
window.open smallest width and height crmpicco Javascript How-To 10 July 1st, 2005 09:54 AM
Controlling width of fields in a subform HowardB Access 2 April 13th, 2005 06:50 AM
Height and Width? venkatesh_anmca Beginning VB 6 0 January 31st, 2005 05:13 AM
Change height of div element if < window height JoelJunstrom Javascript How-To 1 October 10th, 2003 09:14 AM





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