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!

where do I put focus() on each pop link

Status
Not open for further replies.

Keendev

Technical User
Joined
Jan 23, 2006
Messages
106
Location
PH
hi again,
where do I put focus() in my code?

I need my poppage window will be active/current window...

here's a sample in my one of my 12 pop links
Code:
<a href="popJobDtls.cfm?jc=200605_2546&posT=Income Auditor" onclick="window.open(this.href, 'poppage', 'status,scrollbars,resizable,width=500,height=350,left=10,top=10,menubar,toolbar'); return false;"  class="contentB">
								  Income Auditor</a>


thanks.
 
Try this:

Code:
onclick="[!]newWin = [/!]window.open(this.href, 'poppage', 'status,scrollbars,resizable,width=500,height=350,left=10,top=10,menubar,toolbar');  [!]newWin.focus();[/!] return false;"

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top