There is a frame were a website will open i want that all links in the website is disabled except the one link suppose it to be a login link. Is it possible to disable all the links except one. So,this is what that is required.
<a href="" id="link_t" >link for exam</a>
<iframe id="frame" style=" width:100%; height: 700px; margin:30px 0 0 0px;
border-style: none; " src="" ></iframe>
on js file code is
var link_on_page=document.getElementById('link_t');
var divv=document.getElementById('frame');
link_on_page.addEventListener('click', function(e) {
e.preventDefault();
divv.src= "some_link";
requestFullscreen(document.documentElement);
});
I am calling third part website in a frame and do not want that links should open just the login link only just want to diable all links except the one on the third party website.