Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 30977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T13:31:57+00:00 2026-05-10T13:31:57+00:00

How do I name a browser window in ROR, such that I can open

  • 0

How do I ‘name’ a browser window in ROR, such that I can open a page in it later, from another (popup) window (using the target=’name’ html parameter)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T13:31:57+00:00Added an answer on May 10, 2026 at 1:31 pm

    You have to use JavaScript for this:

    <script type='text/javascript'>   window.name = 'MyWindow'; </script> 

    Of course you could easily package this up into a Rails helper method. For example, in app/helpers/application_helper.rb add a new method:

    def window_name(name)   content_for(:window_name) do     '<script type=\'text/javascript\'>window.name = \'#{name}\';</script>'   end end 

    Next, in your layout file, add this line somewhere within the HTML <head> element:

    <%= yield :window_name %> 

    Finally, in your view templates, simply add a line like this (can be anywhere you want) to output the correct JavaScript:

    <% window_name 'MyWindow' %> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The name of a temporary table such as #t1 can be determined using select
What is the name of the IE plug in that someone can download (I
I remember having used such an event, but I can't remember the name. The
I've inherited a C# window's application that I'm not real crazy about. I've got
Rather than displaying a PNG in the browser window, I'd like the action result
What is best way to open a pop up window maximized to the user's
I have a HTML file upload field from which I'm reading the file name
Name of the option tells something but what Visual Studio/compiler really do and what
Name the design considerations in deciding between use of a singleton versus a static
if __name__=='__main__': parser = OptionParser() parser.add_option(-i, --input_file, dest=input_filename, help=Read input from FILE, metavar=FILE) (options,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.