---
title: "js弹出窗口居中"
author: "jarymakej2ee"
date: "2009-05-08T22:20:15Z"
tags: ["JavaScript"]
slug: "js"
draft: false
lastmod: "2009-05-08T22:20:15Z"
id: 382344
url: "https://jarymakej2ee.iteye.com/blog/382344"
---

方法：onclick、Javascript、window.open、

height=h,width=w,top='+(screen.availHeight-h)/2+',left='+(screen.availWidth-w)/2+',