I am running a business and I have a forum on it but I do not want under 18's to access it due to that its for booking and to hire,
anyway what ive done is ive created a link that says "Leave (Iam not 18 or over)"
and this resolves in window.close,
example:
<html>
<body>
<p><a href="javascrip t:window.close( );">Leave (I am not 18 or over)</a>
</p>
</body>
</html>
and a seperate href link which will say "I am 18 or over (Enter!)
but I want this href to disable when the window.close is clicked,
so when the window pops up to say the current page you are view-ing is trying to close click yes or no, If they click no the href should disable stopping them from accessing it.
anyway what ive done is ive created a link that says "Leave (Iam not 18 or over)"
and this resolves in window.close,
example:
<html>
<body>
<p><a href="javascrip t:window.close( );">Leave (I am not 18 or over)</a>
</p>
</body>
</html>
and a seperate href link which will say "I am 18 or over (Enter!)
but I want this href to disable when the window.close is clicked,
so when the window pops up to say the current page you are view-ing is trying to close click yes or no, If they click no the href should disable stopping them from accessing it.
Comment