# Link\_to\_remote confirm dialog title

**URL:** <https://www.ruby-forum.com/t/link-to-remote-confirm-dialog-title/132501>\
**Category:** Rails\
**Created:** [March 20, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/link-to-remote-confirm-dialog-title/132501 "2008-03-20T19:47:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [March 20, 2008, 7:47pm UTC](https://www.ruby-forum.com/t/link-to-remote-confirm-dialog-title/132501/1 "2008-03-20T19:47:59Z")

</div>

Is there any way to set the confirmation dialog title when using  
link\_to\_remote with the :confirm option?

In Firefox the dialog works fine but the title is:

“The page at [http://localhost:3000](http://localhost:3000) says:”

It would be nice if I could set that to something meaningful.

Any information is appreciated,  
Rick

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [March 20, 2008, 7:54pm UTC](https://www.ruby-forum.com/t/link-to-remote-confirm-dialog-title/132501/2 "2008-03-20T19:54:13Z")

</div>

Rick F. wrote:

> Rick

I believe that’s a security measure implemented by the browser makers to  
indicate to the user where the dialog box is coming from to combat  
phishing and other malicious deceptions (not that anyone ever _reads_  
the title anyway). But, the short answer is, no , you can’t do anything  
about that.

–  
[http://www.5valleys.com/](http://www.5valleys.com/)

[http://www.workingwithrails.com/person/8078](http://www.workingwithrails.com/person/8078)

---

<div class="post-metadata">

**Author:** ![rickf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9e8a1a/32.png) [@rickf](https://www.ruby-forum.com/u/rickf)\
**Post date:** [March 20, 2008, 7:55pm UTC](https://www.ruby-forum.com/t/link-to-remote-confirm-dialog-title/132501/3 "2008-03-20T19:55:24Z")

</div>

Short answer is no…

link\_to\_remote uses a basic javascript alert()…and that’s just the  
behavior of the alert function.

But there’s nothing stopping you from overriding the enter thing with  
some  
fancy javascript and CSS. There are some nice modal window javascript  
classes out there. But, I don’t think that’s the answer you were looking  
for.

On Thu, Mar 20, 2008 at 1:47 PM, Rick F. \<
