The redirect isn't working when "this._try == 1"?
Here's the full JS, however it no longer is checking the try == 1 on click, rather automatically when the window is closed.
function ouvre(fichier) {
ff=window.open(fichier,"popup","width=600px,height=300px,left=50%,top=50%")
//this._try = 1;
setTimeout('this._try = 1;', 4000);
}
function playMovie(_try) {
if (this._try == 1) { playsavideo(); }
else { alert('You must share to unlock.'); }
}
function playsavideo(type) {
{
window.location = "http://google.com"
}
}
The window is called by this...
<a href="#" onClick="ouvre('https://twitter.com/share?url=https%3A%2F%2Fdev.twitter.com%2Fpages%2Ftweet-button');return false">Test</a>
thisare you creating an object someware? show all the code?this?