| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Set the size and placement of window
I am adding a link that will open a page in a new window. I want that window to be small (a small rectangle) and open right in the middle of the screen. How can I do it?
CB |
|
#2
|
|||
|
|||
|
Quote:
I also want only the title bar to appear. The address bar and the other buttons of the browser should not appear. Please help. CB |
|
#3
|
|||
|
|||
|
Try this:
Code:
<script>
function popup(strURL){
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,tool bar=1,location=1,menubar=1,status=1,directories=0"
win2=window.open(strURL,"",winfeatures)
}
</script>
<a href="#" onclick="popup('http://domain.com')">link</a>
Customize the winfeatures of how you want your window to look for centering, see this tread: http://forums.aspfree.com/html-java...dow-167410.html |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Set the size and placement of window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|