Window Focus Problem

Javascript coding ..

Moderators: macek, egami, gesf

Mixamajic
New php-forum User
New php-forum User
Posts: 9
Joined: Sun Feb 02, 2003 6:54 pm
Location: Milwaukee
Contact:

Window Focus Problem

Postby Mixamajic » Mon Feb 03, 2003 8:05 pm

I have a few links on a page that I would like to bring up a new small window. This window contains some basic definitions and I would like for it to stay focused in front of the main page until the user decides to close the smaller window. Furthermore when the user clicks on other definition links I would like for the small window to change, but not disapear behind the main window. Right now this is what I have:

Code: Select all

<A HREF="thelinks.html" TARGET="definition" onClick="window.open('thelink.html','definition',config='height=100,width=420,toolbar=0,menubar=0,location=0,directories=0')">Click here</A>


Then for the other pages (thelinks.html) in the body I have:

Code: Select all

<body OnLoad="self.focus()">


This works for the time being but the small window disapears and then comes back upon reload. I would rather it stay focused all the time. Is there any way to achieve this? Hope this was clear. As always, any help is much appreciated.[/code]

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Mon Feb 03, 2003 10:54 pm

hrmmm


Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 1 guest

cron