HTML / Javascript help needed
| Posted: 30th Apr 2012 - 11:00 Quote | |
Please help. I am trying to create a pop-up warning message for when someone clicks a link to leave my website and go to another which I am not responsible for. I am currently typing in the below and it doesn’t work. Can you point me to where I am going wrong or a brand new code I should be using? <p><span title="Beacon ">To visit the FSA consumer website - Money Made Clear - please <html><head><script type="text/javascript">function show_alert(){alert("You are now departing from the regulatory site of Beacon Wealth Management Ltd. Beacon Wealth Management Ltd is not responsible for the accuracy of the information contained within the linked site");}</script></head><body><input type="button" href="http://www.moneymadeclear.org.uk/" target="<input onclick=">click here</a></span></p></body></html>
|
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |
| Posted: 30th Apr 2012 - 11:18 Quote | |
Do you actually need this? if they leave your website they leave it, sessions over. Unless your saying this website is an authority on something, but then your terms and conditions should cover you for this. The script doesn't look right. You possibly need a lightbox to open.
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @cocoonfxmedia | |
| Posted: 30th Apr 2012 - 11:20 Quote | |
Unfortunately we have to have this by law according to our regulatory body the FSA. (I took the structure of the coding above from a website help page) |
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |
| Posted: 30th Apr 2012 - 11:42 Quote | |
ok I would recommend Jquery with a lightbox however you possibly need something to call the lightbox when someone leaves the site. So you need to store either a cookie or a session id. You then need to have if you use a cookie a privacy statment to cover you for the cookies... ;o) http://fancybox.net/ is one site to create the lightbox or iframe. just trying a script see if it works... on hold |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @cocoonfxmedia | |
| Posted: 30th Apr 2012 - 11:46 Quote | |
Our privacy policy includes cookies so we are ok with this. Thank you I'll await your result |
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |
| Posted: 30th Apr 2012 - 11:50 Quote | |
http://www.test-cocoonfxmedia.co.uk/java/test.html is this what your after for cookies you need to have a function for the user to accept cookies. Its something which UK has to complie with by 26th May. Have a look at my site. |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @cocoonfxmedia | |
| Posted: 30th Apr 2012 - 11:58 Quote | |
<script type="text/javascript">
window.onbeforeunload = function() { return "Are you sure you want to leave by doing so your agreeing to leave?"; }
</script>
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @cocoonfxmedia | |
| Posted: 30th Apr 2012 - 12:15 Quote | |
Thank you for the code but for some very strange reason I type it into my html area and then when I re-enter the area it has been deleted? I must be doing something silly, any ideas? |
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |
| Posted: 30th Apr 2012 - 12:18 Quote | |
are you using a template site? can you send me a link to your site so I can look at the code?? you also need to place the code between the <head> </head> tags not in the <body> area.
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @cocoonfxmedia | |
| Posted: 30th Apr 2012 - 12:29 Quote | |
Hi Katie, I would advise that you ignore the above as it's overly complicated and uber confusing. The most straight forward method is below;
Add this inside your <head> ..... </head> region;
<script type="text/javascript">
function show_alert()
{
alert("You are now departing from the regulatory site of Beacon Wealth Management Ltd./n/nBeacon Wealth Management Ltd is not responsible for the accuracy of the information contained within the linked site");
}
</script>
Then for the link itself, please add the following into your <a> (link) tag;
onclick="show_alert()" value="Show alert box"
Like so;
<a href="link.html" onclick="show_alert()" value="Show alert box" />Link</a>
|
|
We believe your customers deserve the very best online experience.- If you feel the same way, get in touch...
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @andyunleash | |
| Posted: 30th Apr 2012 - 12:39 Quote | |
I've created a fiddle for this so you can see the code (top left) and the result (bottom right). Click the link and the pop up occurs, they click yes and then get redirected to the site; |
|
We believe your customers deserve the very best online experience.- If you feel the same way, get in touch...
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @andyunleash | |
| Posted: 30th Apr 2012 - 12:44 Quote | |
Hi Andy and James for your help. Andy the above is great and very straight forward, however I am still experiencing problems. I have spoken with James and he says it is because I have created it with 1&1 and they have put some limitations on the site, so just need to find a way to get around it. |
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |
| Posted: 30th Apr 2012 - 13:05 Quote | |
Hi Katie, was good to have a chat, if you run into any more trouble let me know. For anyone else using 1&1 My Website, if you need to add scripts to your header, go to Settings --> Edit Header Section. Paste in your <script></script> there and it will do the trick. Also if anyone needs something similar please use this Fiddle and edit the areas in the top left box where applicable --> http://jsfiddle.net/andyunleashed/pEmtS/6/ Then you can copy and paste to the relevant places in your code. |
|
We believe your customers deserve the very best online experience.- If you feel the same way, get in touch...
|
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @andyunleash | |
| Posted: 30th Apr 2012 - 13:16 Quote | |
What can I say other than a HUGE thank you to both James Blackman and Andy Howells. I now have the pop-up working as I had hoped and it works brilliantly on all pages! Thank you once again. This just shows the power of 4N and its members. |
|
Katie Kitson BA(Hons), MCIM, Chartered Marketer Marketing Executive Beacon Wealth Management Ltd, Cromwell House, High Street, Kimbolton, Cambs PE28 0HA Tel: 01480 869466 Fax: 01480 869477 Email: kkitson@beaconwealth.co.uk Web: www.beacon-financial.co.uk / www.beaconwealthmanagement.co.uk Beacon Wealth Finalists for New Business of the Year 2012 Beacon Financial Ltd and Beacon Wealth Management Ltd are authorised and regulated by The Financial Services Authority |
|
| View Profile Send Message Leave Testimonial Find Posts TWEET ME @KtKitson | |



RSS Feed
