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

can anyone help me out?

timdesomereAsked:
Who is Participating?
 
umangjoshiConnect With a Mentor Commented:
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>
0
 
bjorsqCommented:
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.
0
 
timdesomereAuthor Commented:
thanks

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

0
All Courses

From novice to tech pro — start learning today.