Force a surve to open without waiting for onload.
The demo uses either an anonomous web survey link or a web survey link including background information.
<!-- put in head -->
<link href="https://dm.quicksearch.se/quicksearch.websurvey.css" rel="stylesheet">
<!-- /put in head -->
<script src="https://dm.quicksearch.se/quicksearch.dialoglink.js"></script>
<script src="https://dm.quicksearch.se/quicksearch.websurvey.js"></script>
<!-- sample third party script -->
<script src="confetti.js"></script>
<canvas id="confetti-canvas" style="position: fixed; top: 0; left: 0; width: 100vw; height: 100wh"></canvas>
<!-- /sample third party script -->
<script>
var dialogLinkConfig = {
"data" : {
"first_name" : "John",
"last_name" : "Doe",
"mobile_phone" : "555-123456",
"extraField1" : "Summer campaign",
"extraField2" : "Product1;Product2;Product3",
"extraField3" : "Good customer"
}
};
var webSurveyConfig = {
"Width": 350,
"Height" : 420,
"Position" : "left"
};
Quicksearch.WebSurvey(Quicksearch.DialogLink("B832E9B6Z7050", dialogLinkConfig), webSurveyConfig);
</script>
A 350px x 420px survey will pop up on the left hand side of the website.