View Full Version : Basic JS question popups, no scrollbar

06-26-2009, 07:37 PM
I have a link that loads a list of project times in a popup. This list is pretty long. In fact, you cannot resize the window to view it all even if you tried.

I have this code

<a href="#" onclick="window.open ('http://mydomain.com/myfile.php?dept=1&idtask=6803', 'Logged times', 'height=300,width=500,scrollbars=yes,resizable=yes'); return false;">View Ticket Times</a>

you will notice scrollbars set to = yes and also tried scrollbars=true and yet still no scrollbars in the popup. I viewed source in the browser and it is there on the link. Any ideas why I am not getting a scrollbar?

Thanks for any info

06-26-2009, 08:34 PM
ok here is an odd one. I found this working example on this page

Example of one working (http://www.htmlcodetutorial.com/linking/linking_famsupp_128.html)

The only difference I see in their code and mine is they put the call in a function where mine is in a link.

they say

window.open(href, windowname, 'width=400,height=150,scrollbars=yes');

Where href and windowname are local vars they set. So anyone see a difference between theirs and mine? If you click on their link it opens a popup and it has a vertical scrollbar...

06-30-2009, 02:06 PM
no one has any ideas?

06-30-2009, 06:38 PM
no one has any ideas?

Try the following:

<script language='javascript' type='text/javascript'>
function showPopup()
window.open ('http://mydomain.com/myfile.php?dept=1&idtask=6803', 'Logged times', 'height=300,width=500,scrollbars=yes,resizable=yes');
return false;


<a href="javascript:showPopup()" target="blank">View Ticket Times</a>

and try manipulating as well the target property inside the anchor tag