是否有任何函数javascript,如果窗口window.open(url)打开不再打开?

时间:2016-06-16 15:25:13

标签: javascript

是否有任何函数javascript,如果窗口window.open(url)打开不再打开? 我想知道是否有这种可能性。请。 我的代码示例:

<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JNLP</title>
<script type="text/javascript">
        //Funcao que faz a aplicacao abrir automaticamente.
        function OpenInNewTab(url) {
            var win = window.open(url,'_parent');
            win.focus();
            }
    </script>
</head>
<body onload = OpenInNewTab("jnlp.jsp")>
<p><%=request.getParameter("nome") %><p>    
<b>Ambiente de teste.</b>
</body>
<script type="text/javascript" src="http://code.jquery.com/jquery-  1.4.3.min.js">   </script>
</html>

0 个答案:

没有答案