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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two questions... 1

Status
Not open for further replies.

linckx

Technical User
Oct 2, 2002
18
hi there

first question: how can I make a popup come up and always be in the downright corner? I don't know if that's possible...

second question: I tried linking something from out of a popup to the mainwindow, and it works fine in IE 5 but doesn't in safari...

are there any solutions for that?
robin
 
I don't know about safari, but the answer to the first question is...

<script>
function popWin(){
if (screen){
wWidth = screen.width
wHeight = screen.heigth
//these two are the width & height of your popwindow...
pWidth = 250
pHeight = 100
leftPos = wWidth - pWidth
topPos = wHeight - pHeight
window.open(&quot;somePage.htm&quot;,&quot;winName&quot;,&quot;top=&quot; + topPos + &quot;,left=&quot; + leftPos + &quot;,height=&quot; + pHeight + &quot;,width=&quot; + pWidth)
}
}
</script>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top