-
Centre window after button click
I want to use images to open a window in the centre of the screen with various dimensions. Anybody know the code???
Thank you
-
-
HI
Take a look at http://www.javascriptkit.com/jsref/window.shtml
The code is: screenX, screen
rgds,Simonf
-
-
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
penpopup('pdfs/d2.pdf')"
rgds,Simonf
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks