Click here to Skip to main content
15,887,027 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: How to put clipboard data into TextBox Pin
Ravindra Bisen14-Jan-13 21:50
Ravindra Bisen14-Jan-13 21:50 
GeneralRe: How to put clipboard data into TextBox Pin
itzzmearun29-Jan-13 20:18
itzzmearun29-Jan-13 20:18 
GeneralRe: How to put clipboard data into TextBox Pin
DaveAuld31-Jan-13 2:56
professionalDaveAuld31-Jan-13 2:56 
QuestionjQuery: live() function Pin
Phanindra2619-Jan-13 0:27
Phanindra2619-Jan-13 0:27 
AnswerRe: jQuery: live() function Pin
J4amieC9-Jan-13 0:39
J4amieC9-Jan-13 0:39 
QuestionGoogle+ login on my website Pin
marcbase8-Jan-13 11:16
marcbase8-Jan-13 11:16 
AnswerRe: Google+ login on my website Pin
Sandeep Mewara8-Jan-13 17:45
mveSandeep Mewara8-Jan-13 17:45 
QuestionQuestion Pin
nth926-Jan-13 6:25
nth926-Jan-13 6:25 
i have a questions you can help me ??

XML
Q1) If you have two definitions for embedded CSS classes; classA , and classB. Write a
    JavaScript statement that will be responsible for changing the DIV tag CSS class shown
    below to classB ?
<div name="section1" class="classA"> …… </div>

A.  section1.style.className="classB"
B.  section1.class="classB"
C.  div.className="classB"
D.  section1.className="classB"



Q7. Which of the following is the correct JavaScript syntax to assign the file "bird.jpg" to the src property of an Image object called newImage?
A. newImage = "bird.jpg";
B. newImage.open("bird.jpg");
C. newImage.src("bird.jpg");
D. newImage.src = "bird.jpg";


Q8.The following code will:
var str="welcome in web";
document.writeln(str.link("www.web.com"));

A. display on the browser www.web.com as a hyperlink.
B. display on the browser welcome in web as a hyper link.
C. not display anything on the browser.
D. it is an error to write this javascript code.


XML
Q11. For a webpage containing only one form shown below how can we obtain the value
      entered inside the textbox in JavaScript?

<form name="sub">
      First Number:  <input type = "text" name = "first" size = "5"/> </form>

A.  document.forms[1].first.value
B.  sub.first.value
C.  window.forms[0].first.value
D.  sub.text.first.value



XML
Q12. If we have the following radio buttons in form named Form1, which line of code
      below could be used to determine if the Female option is checked?

Male <input type = "radio" name="gender" value="M" checked/>
Female <input type = "radio" name="gender" value="F"/>

A.  Not checked since the Male option is already checked and cannot be changed.
B.  Form1.gender[1].click();
C.  Form1.gender.checked;
D.  Form1.gender[1].checked;

Q13. Suppose that a JavaScript function was called upon pressing a form’s Submit
      button. Which one of the following JavaScript code lines could prevent the action
      of sending the form’s data to the server?

A.  window.event.returnValue = false;
B.  window.event.returnValue = true;
C.  confirm( "Are you sure you want to reset?" );
D.  window.event.formValue = false;



XML
Q19) The output of the following html document is:
<html><head><title></title><script type = "text/javascript"> <!--
var count = 1;   while (count <= 5)
{ if(count % 3 == 0) document.write("***");
  else document.write("++++");
   document.write( "<br/>" );
 count++;}  // -- >
</script></head><body></body></html>

A) ++++              B) ++++++++***++++              C) ****                        D) +++++
 ++++
       ***
 ++++
 ++++

AnswerRe: Question Pin
Richard MacCutchan6-Jan-13 6:32
mveRichard MacCutchan6-Jan-13 6:32 
AnswerRe: Question Pin
Thomas Daniels6-Jan-13 7:13
mentorThomas Daniels6-Jan-13 7:13 
AnswerRe: Question Pin
J4amieC8-Jan-13 0:52
J4amieC8-Jan-13 0:52 
AnswerRe: Question Pin
Keith Barrow8-Jan-13 1:30
professionalKeith Barrow8-Jan-13 1:30 
QuestionSharepoint - Aggregate lists with JavaScript Pin
garfield1853-Jan-13 3:38
garfield1853-Jan-13 3:38 
QuestionBrowser Back Button Pin
tiger1463-Jan-13 1:58
tiger1463-Jan-13 1:58 
AnswerRe: Browser Back Button Pin
Keith Barrow3-Jan-13 3:03
professionalKeith Barrow3-Jan-13 3:03 
GeneralRe: Browser Back Button Pin
tiger1467-Jan-13 23:19
tiger1467-Jan-13 23:19 
GeneralRe: Browser Back Button Pin
Keith Barrow8-Jan-13 1:41
professionalKeith Barrow8-Jan-13 1:41 
AnswerRe: Browser Back Button Pin
Sandeep Mewara4-Jan-13 2:55
mveSandeep Mewara4-Jan-13 2:55 
AnswerRe: Browser Back Button Pin
twseitex8-Jan-13 6:56
twseitex8-Jan-13 6:56 
AnswerRe: Browser Back Button Pin
Anjum.Rizwi15-Jan-13 21:20
professionalAnjum.Rizwi15-Jan-13 21:20 
AnswerRe: Browser Back Button Pin
vinodkumarnie18-Jan-13 22:33
vinodkumarnie18-Jan-13 22:33 
AnswerRe: Browser Back Button Pin
Deepak Kr17-Feb-13 22:26
Deepak Kr17-Feb-13 22:26 
Generalhow can we set random image in my asp website? Pin
GDdixit31-Dec-12 5:43
GDdixit31-Dec-12 5:43 
AnswerRe: how can we set random image in my asp website? Pin
Sandeep Mewara4-Jan-13 2:59
mveSandeep Mewara4-Jan-13 2:59 
GeneralRe: how can we set random image in my asp website? Pin
GDdixit22-Jan-13 0:52
GDdixit22-Jan-13 0:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.