我試圖通過單擊按鈕打開彈出窗口。 請檢查我的下面的代碼,並告訴我爲什麼它不工作。 我使用getreponse彈出點擊觸發POP向上彈出
http://www.reussirlegmat.com/2499-2/
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<button id="button" >Show it</button>
<script type="text/javascript" src="https://app.getresponse.com/view_webform_v2.js?u=BaAuE&webforms_id=7152504">{
"name": "myuniqueform2"
}
</script>
<script>
var myform = GRWF2.get('myuniqueform2'),
element = document.getElementById('button');
element.addEventListener("click", function(){
myform.show();
});
</script>
</body>
</html>
什麼是在腳本中使用'src'屬性做對象文字? – Barmar
對不起,我是編碼新手,所以我不明白你的意思。 – rihab
我已經使用此參考 https://support.getresponse.com/faq/can-i-trigger-my-pop-over-web-form-with-a-button-or-a-link – rihab