Click here to Skip to main content
12,633,519 members (30,849 online)

JavaScript

 
QuestionAbout mobile web debugger Pin
tidelgl13-Jan-13 20:18
membertidelgl13-Jan-13 20:18 
QuestionRegular Expression Pin
AB777111-Jan-13 5:10
memberAB777111-Jan-13 5:10 
AnswerRe: Regular Expression Pin
vinodkumarnie18-Jan-13 22:44
membervinodkumarnie18-Jan-13 22:44 
AnswerRe: Regular Expression Pin
AspDotNetDev24-Jan-13 15:09
protectorAspDotNetDev24-Jan-13 15:09 
QuestionHow to put clipboard data into TextBox Pin
Ravindra Bisen10-Jan-13 1:02
memberRavindra Bisen10-Jan-13 1:02 
AnswerRe: How to put clipboard data into TextBox Pin
J4amieC10-Jan-13 3:39
memberJ4amieC10-Jan-13 3:39 
AnswerRe: How to put clipboard data into TextBox Pin
Ravindra Bisen14-Jan-13 22:50
memberRavindra Bisen14-Jan-13 22:50 
GeneralRe: How to put clipboard data into TextBox Pin
itzzmearun29-Jan-13 21:18
memberitzzmearun29-Jan-13 21:18 
GeneralRe: How to put clipboard data into TextBox Pin
DaveAuld31-Jan-13 3:56
mentorDaveAuld31-Jan-13 3:56 
QuestionjQuery: live() function Pin
Phanindra2619-Jan-13 1:27
memberPhanindra2619-Jan-13 1:27 
AnswerRe: jQuery: live() function Pin
J4amieC9-Jan-13 1:39
memberJ4amieC9-Jan-13 1:39 
QuestionGoogle+ login on my website Pin
marcbase8-Jan-13 12:16
membermarcbase8-Jan-13 12:16 
AnswerRe: Google+ login on my website Pin
Sandeep Mewara8-Jan-13 18:45
mvpSandeep Mewara8-Jan-13 18:45 
QuestionQuestion Pin
nth926-Jan-13 7:25
membernth926-Jan-13 7:25 
i have a questions you can help me ??

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.


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



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;



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 7:32
mvpRichard MacCutchan6-Jan-13 7:32 
AnswerRe: Question Pin
ProgramFOX6-Jan-13 8:13
member ProgramFOX6-Jan-13 8:13 
AnswerRe: Question Pin
J4amieC8-Jan-13 1:52
memberJ4amieC8-Jan-13 1:52 
AnswerRe: Question Pin
Keith Barrow8-Jan-13 2:30
mentorKeith Barrow8-Jan-13 2:30 
QuestionSharepoint - Aggregate lists with JavaScript Pin
garfield1853-Jan-13 4:38
membergarfield1853-Jan-13 4:38 
QuestionBrowser Back Button Pin
tiger1463-Jan-13 2:58
membertiger1463-Jan-13 2:58 
AnswerRe: Browser Back Button Pin
Keith Barrow3-Jan-13 4:03
mentorKeith Barrow3-Jan-13 4:03 
GeneralRe: Browser Back Button Pin
tiger1468-Jan-13 0:19
membertiger1468-Jan-13 0:19 
GeneralRe: Browser Back Button Pin
Keith Barrow8-Jan-13 2:41
mentorKeith Barrow8-Jan-13 2:41 
AnswerRe: Browser Back Button Pin
Sandeep Mewara4-Jan-13 3:55
mvpSandeep Mewara4-Jan-13 3:55 
AnswerRe: Browser Back Button Pin
twseitex8-Jan-13 7:56
membertwseitex8-Jan-13 7:56 
AnswerRe: Browser Back Button Pin
Anjum.Rizwi15-Jan-13 22:20
memberAnjum.Rizwi15-Jan-13 22:20 
AnswerRe: Browser Back Button Pin
vinodkumarnie18-Jan-13 23:33
membervinodkumarnie18-Jan-13 23:33 
AnswerRe: Browser Back Button Pin
Deepak Kr17-Feb-13 23:26
memberDeepak Kr17-Feb-13 23:26 
Generalhow can we set random image in my asp website? Pin
khiladi78631-Dec-12 6:43
memberkhiladi78631-Dec-12 6:43 
AnswerRe: how can we set random image in my asp website? Pin
Sandeep Mewara4-Jan-13 3:59
mvpSandeep Mewara4-Jan-13 3:59 
GeneralRe: how can we set random image in my asp website? Pin
khiladi78622-Jan-13 1:52
memberkhiladi78622-Jan-13 1:52 
GeneralRe: how can we set random image in my asp website? Pin
Sandeep Mewara22-Jan-13 3:34
mvpSandeep Mewara22-Jan-13 3:34 
Questiongenerate random numbers from specific array Pin
aeman29-Dec-12 23:16
memberaeman29-Dec-12 23:16 
AnswerRe: generate random numbers from specific array Pin
Sandeep Mewara4-Jan-13 4:06
mvpSandeep Mewara4-Jan-13 4:06 
AnswerRe: generate random numbers from specific array Pin
Joe DiNatale4-Jan-13 10:28
memberJoe DiNatale4-Jan-13 10:28 
AnswerRe: generate random numbers from specific array Pin
John Y.19-Feb-13 6:47
memberJohn Y.19-Feb-13 6:47 
Questionaccess info popup page Pin
apadana_198928-Dec-12 7:58
memberapadana_198928-Dec-12 7:58 
AnswerRe: access info popup page Pin
Sandeep Mewara4-Jan-13 4:13
mvpSandeep Mewara4-Jan-13 4:13 
AnswerRe: access info popup page Pin
vinodkumarnie18-Jan-13 23:56
membervinodkumarnie18-Jan-13 23:56 
Questioncontrol other page Pin
apadana_198928-Dec-12 7:50
memberapadana_198928-Dec-12 7:50 
AnswerRe: control other page Pin
aeman29-Dec-12 23:34
memberaeman29-Dec-12 23:34 
AnswerRe: control other page Pin
jkirkerx31-Dec-12 11:34
memberjkirkerx31-Dec-12 11:34 
QuestionProblem With jQuery AppendTo and Data Attributes Pin
AnalogNerd28-Dec-12 4:41
memberAnalogNerd28-Dec-12 4:41 
Questioncss Pin
SINNAM28-Dec-12 2:32
memberSINNAM28-Dec-12 2:32 
AnswerRe: css Pin
Keith Barrow28-Dec-12 3:33
mentorKeith Barrow28-Dec-12 3:33 
Questioncss Pin
SINNAM28-Dec-12 2:29
memberSINNAM28-Dec-12 2:29 
AnswerRe: css Pin
Sandeep Mewara4-Jan-13 4:14
mvpSandeep Mewara4-Jan-13 4:14 
AnswerFB Connect Javascript Pin
sasikumar.prs27-Dec-12 0:29
membersasikumar.prs27-Dec-12 0:29 
GeneralRe: FB Connect Javascript Pin
khiladi78631-Dec-12 6:40
memberkhiladi78631-Dec-12 6:40 
GeneralRe: FB Connect Javascript Pin
jkirkerx31-Dec-12 11:36
memberjkirkerx31-Dec-12 11:36 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161208.2 | Last Updated 5 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid