JavaScript input Property
Complete RegExp Object Reference
Definition and Usage
The input property is the string the pattern match is performed.
Syntax
Example
In the following example we will get the input string the regular expression
vas performed on:
<script type="text/javascript">
function getRegInput()
{
var patt1 = new RegExp("W3");
var str = document.frm1.txtinput.value;
patt1.test(str);
if(RegExp.input)
{
alert("The input is: " + RegExp.input);
}
else
{
alert("The input does not contain W3");
}
}
</script>
<form name="frm1">
Enter some Text and click outside:
<input type="text" name="txtinput" onChange='getRegInput()'><br />
Input will only show if text contains W3.
</form>
|
Try-It-Yourself Demos
input
How to use input property to see the string the pattern match was performed on.
Complete RegExp Object Reference
Learn how your website performs under various load conditions
|
|
WAPT
is a load, stress and performance testing tool for websites and web-based applications.
In contrast to "800-pound gorilla" load testing tools, it is designed to minimize the learning
curve and give you an ability to create a heavy load from a regular workstation.
WAPT is able to generate up to 3000 simultaneously acting virtual users using standard hardware configuration.
Virtual users in each profile are fully customizable. Basic and NTLM authentication methods are supported.
Graphs and reports are shown in real-time at different levels of detail, thus helping to manage the testing process.
Download the free 30-day trial!
|
|