Difference between revisions of "Goto web page upon click of Close button"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "<div>If you want to go to your web page upon click Close button on End question,</div><div><br/></div><div>Please insert your web page link to code below and paste them into q...")
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<div>If you want to go to your web page upon click Close button on End question,</div><div><br/></div><div>Please insert your web page link to code below and paste them into question's JS of END QUESTION ( question was set to "END")</div><div><br/></div><div><br/></div>
 
<div>If you want to go to your web page upon click Close button on End question,</div><div><br/></div><div>Please insert your web page link to code below and paste them into question's JS of END QUESTION ( question was set to "END")</div><div><br/></div><div><br/></div>
 +
<source lang="javascript">
 +
Question.bind('afterShowQuestion', function(question, answerSheet, element) {
 +
 +
$('.close:eq(0)').click(function(){
 +
window.location = "Insert your web page link"; //
 +
});
 +
});
 +
 +
</source>
 +
 +
<br/>[[File:Buttonclose.png]]
 +
 +
[[Category:Questionnaire]]

Latest revision as of 10:20, 12 April 2017

If you want to go to your web page upon click Close button on End question,

Please insert your web page link to code below and paste them into question's JS of END QUESTION ( question was set to "END")


Question.bind('afterShowQuestion', function(question, answerSheet, element) {

 $('.close:eq(0)').click(function(){
 window.location = "Insert your web page link"; // 
 });
});


Buttonclose.png