Button to close website

User 2504666 Photo


Registered User
7 posts

I want to link a button (named LEAVE) to a location/page that will close the website.
User 187934 Photo


Senior Advisor
20,265 posts
Online Now

Try this. Paste into an html box

<form>
<input type="button" value="LEAVE" onClick="window.close()">
</form>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2504666 Photo


Registered User
7 posts

Thanks for the help, Eric that works. I'm not a code writer, which is why I bought Visual Site Designer. One more thing, I want to make different mp3 sounds when clicking the ENTER or LEAVE buttons. That leaves one question: Why does VSD only allow you to mouse over a button and not click it to operate it?
User 2147626 Photo


Ambassador
2,958 posts

You can operate any button in VSD that you make. :D Just add the 'link' that you want. That's not the same thing you asked Eric for earlier. That's a completely different type button. If you want to do a little more coding (ugh! - I don't do coding) then I'm sure Eric can show you how to use your own button creation in that little script instead of the generic one. :cool:
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
User 2504666 Photo


Registered User
7 posts

Thanks Gunsmoke. I'm not averse to doing some simple coding if someone can give me the script.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.