整体的逻辑怎么分析?
step1: a confirm windom is prompted
step2: yes or no
step3: yes means open a new window with a specific url
step4: do nothing