Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Sreen Size

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
tobrien
Asked:
tobrien
1 Solution
 
RM032397Commented:
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
 
tobrienAuthor Commented:
Great work!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now