?
Solved

Radio Button in Popup Window

Posted on 2005-04-21
5
Medium Priority
?
309 Views
Last Modified: 2008-03-06
I want to create a popup window that will present user with a series of radio buttons to elicit a response.  Is this possible?  If so, could someone provide me with an example?

(I was told it was not possible to put the radio buttons in a popup window.  If it's not possible, a quick reply here will save some time.)
0
Comment
Question by:LarryAndro
  • 4
5 Comments
 
LVL 25

Expert Comment

by:archrajan
ID: 13837725
Have a page which has radio buttons and then call that page as a popup
0
 
LVL 25

Accepted Solution

by:
archrajan earned 1000 total points
ID: 13837780
HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script>
function doit()
{
var win = window.open("");
win.document.open()
win.document.write('<html><head><body><input type = "radio" name = "rad"><input type = "radio" name = "rad"><input type = "radio" name = "rad"></body></head></html>')
win.document.close()
}
</script>
</HEAD>

<BODY>
<INPUT TYPE = "button" value = "open pop" onclick = "doit();">
</BODY>
</HTML>
0
 
LVL 25

Assisted Solution

by:archrajan
archrajan earned 1000 total points
ID: 13837803
Another way is:
<input type = "button" value = "open new pop" onclick = "window.open('RADIOPOP.html')"> in the main page

and

here is RADIOPOP.html
<BODY>
<input type = "radio" name = "rad">
<input type = "radio" name = "rad">
<input type = "radio" name = "rad">
<input type = "button" onclick = "self.close();" value = "RETURN TO MAIN PAGE">
</BODY>
0
 
LVL 1

Author Comment

by:LarryAndro
ID: 13838290
That helps immensely.  Thanks...
0
 
LVL 25

Expert Comment

by:archrajan
ID: 13838912
u r welcome.. thanks for the points and the grade
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question