Welcome Guest Search | Active Topics | Sign In | Register

Execute JavaScript code before document is ready Options
ozheek
Posted: Monday, August 29, 2016 8:41:05 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
I need to spoof time on the page. So I can use for this next code:

Date = function ()
{
}

But the problem that I need to call this JavaScript code before document is loaded and JavaScript code for receiving time is called.

Any ideas how I can do it?
eo_support
Posted: Monday, August 29, 2016 8:48:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,066
Hi,

You can try to set WebView.JSInitCode. That code is run before everything else.

Thanks!
ozheek
Posted: Monday, August 29, 2016 8:53:36 PM
Rank: Advanced Member
Groups: Member

Joined: 8/29/2016
Posts: 64
Thank you! Exactly what I need!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.