var modal = document.createElement('div'); var buttons = document.getElementsByClassName('iframe'); //var modal_inner = document.createElement('div'); // //modal.className = "modal"; modal.id = 'modal'; document.body.prepend(modal); /*modal_inner.className = "modal-inner"; document.body.modal.innerHTML = modal_inner;*/ // for(var i = 0; i < buttons.length; i++) { var button = buttons[i]; button.onclick = function() { //alert("hello"); var url = this.href; modal.classList.add('show'); modal.innerHTML = ''; //console.log(url); // return false; }; } document.addEventListener("click", function (e) { const target = e.target; if (target instanceof HTMLElement) { if (target.id === 'modal-close') { //alert('Hi'); document.getElementById('modal').classList.remove('show'); } } });
 
SCR10.jpg

Surf Costa Rica is the only place to search, find, and book surf lessons instantly,

Connecting you with surf schools you can trust.

Home Page 6 (1).png

IT STARTS HERE

Search, find, and book surf lessons instantly

N1 Button.jpg
SCR6.png

Surf Costa Rica exists to give back to the local communities who welcome surfers so warmly. All profits from Surf Costa Rica fund our charity, Leoncitos (Little Lions in Spanish). Leoncitos teaches local Ticos how to swim and surf, amongst many things, but also we encourage and support.

By using Surf Costa Rica you are directly contributing to the

local community where you’ll be visiting.

Read more about Leoncitos below.