Hello! I arrive again with weird questions ^^
I want to make the player open a webpage (which is a feedback form and it is totally their own choice whether they will open it or not) .After completing the survey, they will be redirected to a thank you page. I want to check if this thank you (or proof that you completed it page) is loaded or not. If it is loaded, the player will get a type of in-game present like an item (because normally people don't want to participate in surveys) for completing it and helping me with their feedback.
So I did this:
opened the webpage ---> window.open(the url)
checked if the 2nd page was loaded --->
if ( window.location.href == 2nd url) {
get an item
}
It doesn't work! Help me please.
Edit: -_- I'm stupid. It's not supposed to work because obviously MV can't detect if the url I'm talking about is open. I tried the above properly and it shows the url of the index.html file
Well if anyone has any suggestions feel free to tell me ^^
Editx2: I may have figured something out regarding this issue. I guess relying on whether the page was loaded or not isn't an effective way. I will test out my idea tomorrow and if it works, I think it'll be a much better way to do this.
I want to make the player open a webpage (which is a feedback form and it is totally their own choice whether they will open it or not) .After completing the survey, they will be redirected to a thank you page. I want to check if this thank you (or proof that you completed it page) is loaded or not. If it is loaded, the player will get a type of in-game present like an item (because normally people don't want to participate in surveys) for completing it and helping me with their feedback.
So I did this:
opened the webpage ---> window.open(the url)
checked if the 2nd page was loaded --->
if ( window.location.href == 2nd url) {
get an item
}
It doesn't work! Help me please.
Edit: -_- I'm stupid. It's not supposed to work because obviously MV can't detect if the url I'm talking about is open. I tried the above properly and it shows the url of the index.html file
Well if anyone has any suggestions feel free to tell me ^^
Editx2: I may have figured something out regarding this issue. I guess relying on whether the page was loaded or not isn't an effective way. I will test out my idea tomorrow and if it works, I think it'll be a much better way to do this.
