Solved

Sreen Size

Posted on 1997-08-17
2
217 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now