I have used the code below in my site to allow users to enter two possible passwords. If correct the user gets directed to a new page. I have a page called ‘landing’ that I would like them to be directed to. The code works partly - in that it detects if you are enetering the correct passwords. It then sends you to the page specified but this is where it is getting confused.
I have used the code below (not mine) and changed edited the pages to be directed and so have inserted ‘landing’.
window.open(‘landing’)
Instead of going to :-
https://mysite.wixsite.com/mysite/landing
It actually goes to:
https://mysite -wixsite-com.filesusr.com/htm l/landing
You can see that the bold is completely different than what I expected, even the wixsite part.
Now I have just found that if I put the full address into the code it does work but surely this is a much slower and less efficient way to do it. Is it possible to give the local address? I have also tried landing.html but this does not work either.
Thanks for your help.
Full code below:-
.button { background-color: Blue /* Green */ border: 0; color: white; padding: 8px 10px; text-align: center; text-decoration: none; display: inline-block; font-size: 18px; margin: 4px 2px; cursor: pointer; } input { width: 200px; height: 30px; background-color : #d1d1d1; border-style:hidden; } Password:
Submit