Question: Consider the three variables:
someText = 'JavaScript1.2';
pattern = /(\w+)(\d)\.(\d)/i;
outCome = pattern.exec(someText);
What does outCome[0] contain?
Question: Given the following window.open function:
window.open(url,name,"attributes")
How will you ensure that different urls are opened in the same window?
Question: Consider the three variables:
someText = 'JavaScript1.2';
pattern = /(\w+)(\d)\.(\d)/i;
outCome = pattern.exec(someText);
What does pattern.ignoreCase contain?
Question: You are allowing the user to upload image files. You want to be able to capture the attributes of the image such as width and height using JavaScript. How would this be possible?
A
It is not possible using JavaScript
B
You would use the Image object such as var img = new Image
C
You would use the Img object
D
This is possible only on the server side using a component
Question: Consider the following JavaScript function to change the color of the text box named ''txtName'':
function color(col)
{ document.forms[0].txtName.style.background=col }
You want that the color of the text box should change to green only while the user is pressing a key?