no scrollbars in popup window

Posted on 2003-02-27
Medium Priority
Last Modified: 2008-02-26
Hi, i hope this is something easy to fix; i want a hyperlink that opens a new window of size 500x450 with a vertical scrollbar, but I am only getting a non-resizable window without scrollbars with the following code:

<a href='newpage.htm' target='popup_newpage' onclick="window.open('newpage.htm', 'popup_newpage', 'width=500,height=450', 'scrollbars=yes'); return false">

can anyone help me out?

Question by:timdesomere
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

Expert Comment

ID: 8032460
Change your link to:

<a href="javascript:window.open('newpage.htm', 'popup_newpage', 'width=500,height=450,scrollbars=yes');">

and it should work.

The open() method only takes three arguments (you had four) - the last one contains a comma-separated list of features.

Accepted Solution

umangjoshi earned 300 total points
ID: 8032474
pls try this

<a href="JavaScript://" onClick=" new_page = window.open('newpage.htm','newpagewin','scrollbars=yes,menubar=yes,toolbar=no,resizable=no,top=10,left=10,width=500,height=450' );">Click Here</a>

Author Comment

ID: 8034260

bjorsq, when i tried yours the popup window appeared correctly but the original window went blank and said "Javascript:Openwindow"


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.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

719 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