Menu

[solved]-Hello Statement Written Javascript Header Html Document Need Put Link Statement Document C Q38993253

Hello,

I have an if statement written in javascript in the header of anhtml document (under <script>) and I need to put a link inthe if statement to a document called form.php so that it onlyappears if the requirement is met. Can anyone explain to me why mycode does not work and please fix my code so that it does? And Iwould also really appreciate it if you would please post theresults of the code running correctly as well.

if (undergradGPA > 3.2) { = Congratulations! greetingUndergrad eligible to apply to the CARIT Student Assistantship You are

Also this did not work for me.

Expert Answer ugeshgupta answered this 3,729 answers You should be changing the link in href field of anchor like below: if(u

Thank you for your help!

if (undergradGPA > 3.2) { = “Congratulations! greetingUndergrad “eligible to apply to the CARIT Student Assistantship You are ” + “program for this upcoming summer semester. Here is ” + “the link to the application form: ” + document.write(<a href=”applicationForm.php”>Assistantship Application Form</a>); } else greetingUndergrad = “Thank you for your interest “in the CARIT Student Assistantship program. + Unfortunately, “your GPA was not high enough to be eligible to apply ” + “to the program.”; Expert Answer ugeshgupta answered this 3,729 answers You should be changing the link in href field of anchor like below: if(undergradGPA > 3.2){ greetingUndergrad ‘Congrats.. (bla bla bla)>’ greetingUndergrad “<a href=form.php>>Assistance Form</a> + document.write(greetingUndergrad); else greetingUndergrad Thank you for your interest.. (bla bla bla)> document.write(greetingUndergrad); View comments (2) Show transcribed image text if (undergradGPA > 3.2) { = “Congratulations! greetingUndergrad “eligible to apply to the CARIT Student Assistantship You are ” + “program for this upcoming summer semester. Here is ” + “the link to the application form: ” + document.write(Assistantship Application Form); } else greetingUndergrad = “Thank you for your interest “in the CARIT Student Assistantship program. + Unfortunately, “your GPA was not high enough to be eligible to apply ” + “to the program.”;
Expert Answer ugeshgupta answered this 3,729 answers You should be changing the link in href field of anchor like below: if(undergradGPA > 3.2){ greetingUndergrad ‘Congrats.. (bla bla bla)>’ greetingUndergrad “>Assistance Form + document.write(greetingUndergrad); else greetingUndergrad Thank you for your interest.. (bla bla bla)> document.write(greetingUndergrad); View comments (2)

Expert Answer


Answer to Hello, I have an if statement written in javascript in the header of an html document (under ) and I need to put a link … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *