As in the post Blog Tips and Trick previously about how to How to Create Alert Message on the blog, on my post this time also will discuss a similar case that is about how to make similar things. difference from the alert message box will Blog Tips and Trick discussed in this post. namely that there are 2 options on the confirmation alert box message, that is OK and Cancel.
Alert Message Box long
New Alert Message Box

As in the example image above, you can see if the new alert message box, there are 2 options OK and Cancel confirmation, with the following explanation: when a visitor clicks on the OK button, then visitors will go to our blog page. while when pressing the Cancel button so visitors will switch to the address we inginkan. Misalnya www.Google.com.
Without the need many strings attached anymore, now I will discuss how to make a second message the Alert box.
1. You log into Blogger, then you get to keep the layout go to Edit Html. after that you find this code. if you have found you please copy and paste this code right under the code earlier.
<script type='text/javascript'>
if (confirm ("Thank you for visiting this blog. Click OK to continue")) {
window.location = "http://shareall4free.blogspot.com/";}
else {window.location = "http://google.com/";}
</ script>
2. Click the save / save your template.
3. Done.
4. Please open your blog to see the results.
Note: The note in red above, please replace your own. for example in writing Thank you for visiting this blog. Click OK to continue your dressing Wellcome to my blog, Clik OK to continue, or other writings. while for writing the address like comtoh: http://shareall4free.blogspot.com/ is the address that you want to go when a visitor presses the OK button. you please replace with your blog address. and writing http://google.com/ is apengalihan address when visitors pressing the Cancel button. you please replace with the web address you want.
Without the need many strings attached anymore, now I will discuss how to make a second message the Alert box.
1. You log into Blogger, then you get to keep the layout go to Edit Html. after that you find this code. if you have found you please copy and paste this code right under the code earlier.
<script type='text/javascript'>
if (confirm ("Thank you for visiting this blog. Click OK to continue")) {
window.location = "http://shareall4free.blogspot.com/";}
else {window.location = "http://google.com/";}
</ script>
2. Click the save / save your template.
3. Done.
4. Please open your blog to see the results.
Note: The note in red above, please replace your own. for example in writing Thank you for visiting this blog. Click OK to continue your dressing Wellcome to my blog, Clik OK to continue, or other writings. while for writing the address like comtoh: http://shareall4free.blogspot.com/ is the address that you want to go when a visitor presses the OK button. you please replace with your blog address. and writing http://google.com/ is apengalihan address when visitors pressing the Cancel button. you please replace with the web address you want.
Simak
Baca secara fonetik