# Popup\_javascript\_function

**URL:** <https://www.ruby-forum.com/t/popup-javascript-function/124556>\
**Category:** Rails\
**Created:** [December 30, 2007, 7:43am UTC](https://www.ruby-forum.com/t/popup-javascript-function/124556 "2007-12-30T07:43:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [December 30, 2007, 7:43am UTC](https://www.ruby-forum.com/t/popup-javascript-function/124556/1 "2007-12-30T07:43:18Z")

</div>

Hi,

Would someone please explain how to use the popup\_javascript\_function in  
urlhelper. I need to have a popup window opened when a user click on a  
link and I think that action is written for that purpose. Unfortunately  
I don’t quite understand what to pass to the popup parameter and perhaps  
more. I have not found documentation or example on this either.  
Please help! Thanks!

---

<div class="post-metadata">

**Author:** ![codecarpenter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/db5fbb/32.png) [@codecarpenter](https://www.ruby-forum.com/u/codecarpenter)\
**Post date:** [December 31, 2007, 6:23pm UTC](https://www.ruby-forum.com/t/popup-javascript-function/124556/2 "2007-12-31T18:23:35Z")

</div>

On 12/30/07, kevin lee [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,
> 
> Would someone please explain how to use the popup\_javascript\_function in  
> urlhelper. I need to have a popup window opened when a user click on a  
> link and I think that action is written for that purpose. Unfortunately  
> I don’t quite understand what to pass to the popup parameter and perhaps  
> more. I have not found documentation or example on this either.  
> Please help! Thanks!

Why not use a link\_to with a :popup parameter?

[http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000913](http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000913)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
