Code for JavaScript to run code

Source: Internet
Author: User
Tags define variable window
Javascript

CODE:

<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>untitled document</title>
<script language= "JAVASCRIPT" >
<!--
function RC () {//running code
w = 500; Window width
h = 500; Window height
x = (screen.width-w)/2; Screen width minus window width, then width/2
y = (screen.height-h)/2; Screen height minus window height, then high/2
var nw=window.open (', ' newwindow ', ' location=1,width= ' +w+ ', height= ' +h+ ', top= ' +y+ ', bottom= ' +y+ ', left= ' +x+ ', right= ' +x ');
Define a variable to open a new window and write out the contents of a text field in a new window
Nw.document.write (Document.all.content.value); Write out the contents of a text field
}
--> Script by shawl.qiu<shawl.qiu@gmail.com>
</script>
<body>
<form action= "" method= "Post" name= "formt" id= "FORMT" >
Name= "Content" cols= "<ttextarea" rows= "ten" >description
use the ids property to specify the style of any html  Tag that has a specific id attribute. for example, you can  specify that the color of the NewTopic ID is green.  see the style object for a description of the style  properties you can specify for ids. the ids property is  Useful when you want to provide an exception to a class  defined in the document.classes property. If you use the  ids property within the style tag  (instead of within the  Script tag), you can optionally omit document from the ids  Syntax. the ids propertY always applies to the current document object.</ttextarea>
<br>
<input type= "button" value= "Running Code" >
</form>
</body>

Script by shawl.qiu<shawl.qiu@gmail.com>
11:21 2006-5-29[/code]

[textarea]<% @LANGUAGE = "VBSCRIPT" codepage= "65001"%>
<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "HTTP://WWW.W3.ORG/TR/HTML4/LOOSE.DTD" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>untitled document</title>
<script language= "JAVASCRIPT" >
<!--
function RC () {//running code
w = 500; Window width
h = 500; Window height
x = (screen.width-w)/2; Screen width minus window width, then width/2
y = (screen.height-h)/2; Screen height minus window height, then high/2
var nw=window.open (', ' newwindow ', ' location=1,width= ' +w+ ', height= ' +h+ ', top= ' +y+ ', bottom= ' +y+ ', left= ' +x+ ', right= ' +x ');
Define a variable to open a new window and write out the contents of a text field in a new window
Nw.document.write (Document.all.content.value); Write out the contents of a text field
}
--> Script by shawl.qiu<shawl.qiu@gmail.com>
</script>
<body>
<form action= "" method= "Post" name= "formt" id= "FORMT" >
Name= "Content" cols= "<ttextarea" rows= "ten" >description
use the ids property to specify the style of any html  Tag that has a specific id attribute. for example, you can  specify that the color of the NewTopic ID is green.  see the style object for a description of the style  properties you can specify for ids. the ids property is  Useful when you want to provide an exception to a class  defined in the document.classes property. If you use the  ids property within the style tag  (instead of within the  Script tag), you can optionally omit document from the ids  Syntax. the ids propertY always applies to the current document object.</ttextarea>
<br>
<input type= "button" value= "Running Code" >
</form>
</body>

Script by shawl.qiu<shawl.qiu@gmail.com>
11:21 2006-5-29



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.