---
title: "生成类似于弹出窗口的页面"
author: "hecal"
date: "2009-08-25T09:38:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2011-12-07T18:09:35Z"
id: 1296501
url: "https://hecal.iteye.com/blog/1296501"
---

&lt;head&gt;  
&lt;%@ include file="header.jsp" %&gt;  
&lt;link rel="stylesheet" type="text/css" href="../../../\_COMMON/archive/LPstyle.css" orteus="true"&gt;

&lt;style type="text/css"&gt;  
#button {  
font-size: 12pt;  
font-family: "ＭＳ ゴシック";  
text-align: center;  
}  
input {  
font-family: "ＭＳ ゴシック";  
}  
&lt;/style&gt;  
&lt;script type="text/javascript"&gt;  
&lt;!--  
window.onload = function() {  
if (window.name == "") {  
// 設定window名  
//  
var date = new Date();  
var windowName = date.getYear().toString()  
\+ date.getMonth().toString()  
\+ date.getDate().toString()  
\+ date.getHours().toString()  
\+ date.getMinutes().toString()  
\+ date.getSeconds().toString()  
\+ date.getMilliseconds().toString();

// 現在Page表示対象  
var url = self.location.href;

// 指定window的parameter  
// 指定幅、高、address bar  
var status = "width=1024, height=768, menubar=no, toolbar=no,"  
\+ "location=no, scrollbars=yes, status=no, resizable=yes";

// 新window起動  
window.opener = window.open(url, windowName, status);

// 親window関閉  
window.close();  
}  
}  
// --&gt;  
&lt;/script&gt;  
&lt;/head&gt;