Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sreen Size

Posted on 1997-08-17
2
Medium Priority
?
233 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 320 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

721 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