no scrollbars in popup window

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="'newpage.htm', 'popup_newpage', 'width=500,height=450', 'scrollbars=yes'); return false">

can anyone help me out?

Who is Participating?
umangjoshiConnect With a Mentor Commented:
pls try this

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

<a href="'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.
timdesomereAuthor Commented:

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

All Courses

From novice to tech pro — start learning today.