JS Help

Reputation
0
Hey guys,


     I am attempting go write a script that will click a URL. this is the concept script

Code:
if (URL != null) {
window.location.href = URL
}
The only problem is that the URL variable is in a function that runs after 6-7 secconds after the page loads! Is there anyway to remove the function from the page JS and read the URL variable immediately?

( this is an adf.ly ad bypasser )

Best,
TeraByTe
 
I suck at coding, and I don't know a lot of JS, but since you have no answers yet, I guess you could try taking the .href off because when I do script redirects I use window.location="http://www.url.com/"

and that usually does it.
 
Back
Top