Where's an Exit button?

  • 1
  • Question
  • Updated 7 years ago
  • Answered
Hi everyone, I would like to know if there is an widget to EXIT on my Yola website. Thanks, and have a happy holidays. TinaRey
Photo of Tinarey Laprofechula

Tinarey Laprofechula

  • 5 Posts
  • 0 Reply Likes
  • just puzzled

Posted 7 years ago

  • 1
Photo of Nazlie

Nazlie

  • 1721 Posts
  • 51 Reply Likes
Hi Tinarey

Are you looking for the Logout link in your Sitebuilder? If so, please see the screen shot below



If you have something else in mind, please give us some more details so that we can assist you further.

Many thanks!
Nazlie
Photo of Tinarey Laprofechula

Tinarey Laprofechula

  • 5 Posts
  • 0 Reply Likes
hi Nazlie, I was wondering how to get out of the webpage one creates when people look at it and then they want to exit out of the webpage.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi Tinarey, do you want to exit out of the site builder and go back to the list of your websites (or back to "My Yola")? Just click My Yola link, here is a screen shot:



I hope this helps.
Nathan
Photo of Tinarey Laprofechula

Tinarey Laprofechula

  • 5 Posts
  • 0 Reply Likes
Hi Nathan, noo. I was wondering if there's a widget that can be used to exit out of the webpage when people look at it. Thanks, TinaRey
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Well there isn't a actual widget built into Yola to do this, but you can accomplish this using a little bit of HTML! To do this, follow these steps:

1. Drag over an HTML widget from the side bar to where you want the Exit link to be.

2. Copy this and then Paste this into the box that pops up:

<a href="#" onclick="window.close();return false;">Close this window</a>

3. Now, click "Save"

4. This will not work in the Site Builder. You need to Preview your page to make this work. Click the "Preview" link next to "Refresh".

Note: When you click this in the Preview window, it is going to say "Are you sure to leave Yola.com?" (or something similar to that) in a alert message. But if you publish your site, and go look at it when it is published, it wont show that message.

I hope this helps.

If you need any help with this let me know.

Nathan
Photo of Tinarey Laprofechula

Tinarey Laprofechula

  • 5 Posts
  • 0 Reply Likes
Thanks, Nathan. It really worked!!. I'm impressed.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
I am glad it worked! :) If you need any more help, post it to this forum and we will help you! Sometimes it takes the Employees and us Champions to get to topics, but if the Employees don't get to it I usually will get to it.

Sincerely,
Nathan
Photo of Tinarey Laprofechula

Tinarey Laprofechula

  • 5 Posts
  • 0 Reply Likes
The first fime I used the "close this window" buttom, it closed the whole thing I had opened. I tried it the second time, and it just closed the tab I was wanted to close. Dont want for people to close other windows that they certainly didnt want closed.
Photo of Nathan

Nathan, Champion

  • 3739 Posts
  • 307 Reply Likes
Hi, so all of the tabs closed when you clicked the close link? Only one should close. I agree, you don't want your website's visitors to get mad at you. Try changing the window.close() to this.close() and see if that works. (but keep the rest of the stuff in there, like return false and stuff) If it works let me know. If it doesn't, I will figure out another code.

Nathan