
October 27th, 2000, 02:26 PM
|
|
Contributing User
|
|
Join Date: Sep 2000
Location: USA
Posts: 226
Time spent in forums: 2 h 40 m 35 sec
Reputation Power: 9
|
|
|
I am creating a site that has several buttons on each page that open up pop-up windows. I have named the pop-up windows the same. I am wanting to open a window with one button, click on another button and open up that page in the same window. That is no problem. However, when I click on the second button, the pop-up loses focus to the main page. How do I keep the focus on the pop-up window?
Code:
function open_win(num)
{
if (num == 1)
{window.open("popup/primary_care_physician.shtml","popup","width=500,height=325,menubar=1");}
else if (num == 2)
{window.open("popup/seal_of_approval.shtml","popup","width=500,height=325,menubar=1");}
}
|