We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Confirmation when click link of other site.
Topic Started: Aug 10 2010, 12:24 PM (385 Views)
dread4everyone
Member Avatar
Member
[ * ]
Board Address: ('Private')
Board Software: (ZetaBoards)
Description:

Leaving confirmation alert before moving to another page when click link on post.
Edited by dread4everyone, Aug 11 2010, 10:03 PM.
Offline Profile Goto Top
 
Pete B-ZNR
Member Avatar
Member
[ *  *  * ]
When you say "alert", do you mean a pop-up box? Or something else?
Offline Profile Goto Top
 
dread4everyone
Member Avatar
Member
[ * ]
Pete B
Aug 12 2010, 09:46 AM
When you say "alert", do you mean a pop-up box? Or something else?
Yes, a pop-up box. It's same same when you change themes


Posted Image


When click "OK" will continue go to link url. :P

Before, I saw it in the page's Viral is AIO. But now the page no longer exists should not know what to say. I speak English very poorly. :cry:
Edited by dread4everyone, Aug 12 2010, 11:06 AM.
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Above the Copyright
Code:
 
<script type='text/javascript'>
/* <![CDATA[ */
$(function() {
$('a').each(function() {
if (this.href.indexOf(main_url) ==-1) {
$(this).click(function(e) {
e.preventDefault();
var c_leave = confirm("This link does not belong to this board. Are you sure you want to navigate away from this page?");
if (c_leave) { window.location = this.href; }
});
}
});
});
/* ]]> */
</script>
Offline Profile Goto Top
 
dread4everyone
Member Avatar
Member
[ * ]
This is it. Thanks Krupa :yes:
Offline Profile Goto Top
 
Roby-ZNR
Member Avatar
Efficacy
[ *  *  *  *  *  * ]
Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic