Button to close website - Post ID 223058
I want to link a button (named LEAVE) to a location/page that will close the website.
Try this. Paste into an html box
<form>
<input type="button" value="LEAVE" onClick="window.close()">
</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
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
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?
You can operate any button in VSD that you make.
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.


Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
-------------------------------------
https://sadduck.com
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.