View Full Version : Centre window after button click
tacbob
12-01-2004, 02:15 PM
I want to use images to open a window in the centre of the screen with various dimensions. Anybody know the code???
Thank you
simonf
12-02-2004, 03:45 AM
HI
Take a look at http://www.javascriptkit.com/jsref/window.shtml
The code is: screenX, screen
rgds,Simonf :cool:
simonf
12-03-2004, 09:05 AM
HI
Or try:
In head:
<script type="text/javascript">
function openpopup(popurl) {
winpops = window.open(popurl,"","width=650, height=500, center, middle, scrollbars=yes, menubar=no, resizable=yes")
}
</script>
In url section:
href="javascript:openpopup('pdfs/d2.pdf')"
rgds,Simonf :cool:
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.