javascript window windows
function openNewWindow(url) {
_top=_top*1+numWindows*20;
_left=_left+20;
numWindows += 1;
parameters = "toolbar=0,scrollbars=0,location=0,statusbar=0,"+
"menubar=0,resizable=0,width=600,height=800,top = 1 ,left =650 ";
var title = "Window #"+numWindows;
myWindow=window.open(url,'','location=false,width=200,height=110');
myWindow.focus();
}
$("#ID").click(function() // click function
{
var _1="callHttp.jsp?KeyCode="+_lookup('InputValue');
openNewWindow(_1);
}
);
Open in same window
a link with button
<a href="input.jsp?input=payrollEntryList.txt&config=payrollEntryListConfig.txt&mode=LIST"><button class="SaveButton" style="float:right;">close</button></a>
Open in next window
<!DOCTYPE html>
<html>
<head>
<script>
function open_win()
{
window.open("http://www.w3schools.com");
}
</script>
</head>
<body>
<form>
<input type="button" value="Open Window" onclick="open_win()">
</form>
</body>
</html>
網站管理員的html css代碼示例
回覆刪除moz專有的不透明屬性