Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding Open Windows 1

Status
Not open for further replies.

jl8789

MIS
Joined
May 22, 2003
Messages
293
Location
US
Is there a way I can find out if there are any IE browsers open with a particular window name?
So what I want to do is find out if Window5.cfm is open somewhere on my computer. It would be even cooler if I could access that window to set focus to or close or do whatever I want to it...

 
If you lost the connection to a window for whom you know the name of, you can reestablish a link like this:

var winVar=window.open('','windowName');
winVar.focus()
winVar.close()
...

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Humn. Is there a way to assign a name to a modalessDialog?

Have this glitch in my script where you can open a widget in a dialog, but problem is you can open it again... and again... and again until your page is covered with modalessDialogs :/

Well I could say that's user stupidity, but if you accidentally double click the button that opens the dialog... you get two then aswell :/

Would appreciate a solution :P

----------
I'm willing to trade custom scripts for... [see profile]
 
How do you use this?

var winVar=window.open('','windowName');
winVar.focus()
winVar.close()

I get an error and I am trying
varwinVar=window.open('','Order Entry - QADS');
winVar.focus();

where Order Entry - QADS is the title of the window, is that the window name???

Please elaborate.
 
jl8789 ...no, the window name is the same as the target name (which I don't think can have spaces or dashes). How did you open the window in the first place?

stormbind... use showModalDialog instead of showModelessDialog. showModalDialog prevents the user from focusing on the main window until the dialog is closed.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
adam,

I want a widget that stays ontop but allows the user to interact with the webpage :/

----------
I'm willing to trade custom scripts for... [see profile]
 
stormbind,
I get it now, this should do it:

<script>
var dialogWin={&quot;closed&quot;:true}
function openDialog(u){
if(dialogWin.closed){
dialogWin=showModelessDialog(u);
}
}
</script>

<a href=&quot;#&quot; onclick=&quot;openDialog(' false&quot;>test</a>

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Ah.. Not tested it yet but looks good! :)

Thanks :)

----------
I'm willing to trade custom scripts for... [see profile]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top