Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Window Focus Problem

Javascript coding ..

Moderators: macek, egami, gesf

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="'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]
New php-forum User
New php-forum User
Posts: 9
Joined: Sun Feb 02, 2003 6:54 pm
Location: Milwaukee

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

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

Return to JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.