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

Help: _blank window with exact size

Status
Not open for further replies.

neegottlob

Programmer
Mar 26, 2006
22
BG
Hello,
Kind of stupid question but I would need some help if you can:) I have a GridView control and a template hyperlink field in there. I wold like when I click on the hyperlink to open a _blank window or something like popup with exact size for example 400x400 and when i leave the window - it shall close or something:) . That window is for my shoping card. So if there is some way to make this happen will be great.

Thank You,
G. Kalchev
 
Yes, you can do this with javascript uing the window.open method and then self.close to close the popup window. Do a search on those methods for more info.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks,
but it didn't work out. I've tried:
Code:
function window_onload() {
window.resizeTo(500,350)

window.resizable=false

}

return window_onfocusout()
{
window.self.close
}

function window_onblur(){
self.close
}
but the same..

Thanks:)
 
What didn't work? The window.open method accepts height and width attributes that you can set to size the window. If you are having trouble with this, I'd suggest you ask fro further help in the JavaScript forum.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
No the size worked. But the window didn't close when I leave it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top