JavaScript deletes duplicate table row code

Source: Internet
Author: User
Keywords Web page production Ajax javascript
Tags ajax code content html http javascript screen type

js pops up new container Two kinds of code
<html xmlns= "http://www.jzread.com/1999/xhtml"
<head>
<meta http-equiv= " Content-type "content=" HTML; charset=gb2312 "/>
<title>js pop-up new container two code </TITLE>
<script language=" javascript "
// Open the Fixed new window
Var open_winobj
function Open_newwindow (url_var,win_name)
{
 var win_width=screen.width ;
 var win_height=screen.height;
 if (open_winobj)
 {
  open_winobj.close ();
  open_winobj=null;
  open_winobj=window.open (Url_var,win_name, "width=" + Win_width + ", height=" + Win_height + ", top=0,left=0, Scrollbars=1, Resizable=yes ");
 }
 else
 {
  open_winobj=window.open (url_var,win_name, width= "+ Win_width +", height= "+ Win_height +", Top=0,left=0,scrollbars=1, Resizable=yes ");
 }
}

Open a new window
function Open_newwin (url_var,win_name)
{
var win_width=screen.width/2;
var win_height=screen.height/2;
window.open (Url_var,win_name, "width=" + Win_width + ", height=" + Win_height + ", Top=0,left=0,scrollbars=1, resizable= Yes ");
}

</script>
</head>

<body>
<a href= "Open a new Window" onclick= javascript:open_newwindow (' http://www.jzread.com ', ' Construction station teaching network '); "target=" _blank "> Open a new Window </a>
<a href= "Open new Window 2" onclick= javascript:open_newwin (' http://www.jzread.com ', ' learning to build a station tutorial '); "target=" _blank "> Open new Window 2 </a>
</body>
</html>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.