var modal = document.createElement('div'); var buttons = document.getElementsByClassName('iframe'); //var modal_inner = document.createElement('div'); // //modal.className = "modal"; = '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 =; if (target instanceof HTMLElement) { if ( === 'modal-close') { //alert('Hi'); document.getElementById('modal').classList.remove('show'); } } });

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


Search, find, and book surf lessons instantly

N1 Button.jpg

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.