Solved

Sreen Size

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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…

747 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