Solved

Sreen Size

Posted on 1997-08-17
2
230 Views
Last Modified: 2008-03-06
When a link is clicked on, I would like to open the page with a certain width, height, while also being able to control resize etc. I have the code up and when I run it, I get an error saying "unterminated string literal." Below is the link to my code:

http://www.bremenbraves.com/lessonpl/puzzle/index.htm

Any help would be appreciated.

Tim
0
Comment
Question by:tobrien
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
RM032397 earned 80 total points
ID: 1269007
I wish all questions were as simple.

You have



function opendemo()
{
         window.open("struct.htm", "Demo", "location=no, width=630,
         height=350, toolbar=no, directories=no, status=yes, menubar=no,
scrollbars=no");
}

But the line should not be broken like that, it should be



function opendemo()
{
 window.open("struct.htm", "Demo", "location=no,width=630, height=350,toolbar=no,directories=no,status=yes,menubar=no,scrollbars=no");
}

Notice the removal of SPACES in the attributes.




Once more schematically as it is hard to see how this will come out working in this little input box:

YES
function opendemo()
{
 window.open( URL, WNAME, "attributes,with,no,spaces")

}

But NOT

function opendemo()
{
 window.open( URL, WNAME, "attributes,
               with,no,spaces")
}

since the attributes are one string.


0
 

Author Comment

by:tobrien
ID: 1269008
Great work!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question