Page 1 of 1

Browser Title checking

PostPosted: Tue Jan 13, 2015 4:37 am
by Dudus
Hi,

is there any way to do the following? I have a Browser in my neobook application, and the default Title of the webpage is: Title.
BUT if this title text will change than the pub inform me that the title has been changed. How to check it? Is there any way to check the [WebBrowserTitle] every secound?
Please try to help me.

Thank you!
Dududs

Re: Browser Title checking

PostPosted: Tue Jan 13, 2015 6:15 am
by Gaev
Dudus:

Try this code ...
Code: Select all
BrowserExecScript "WebBrowser1" "window.external.nbSetVar('currentTitle',document.title);" "JScript"

... in your Timer object's Timer Interval section ... the NeoBook variable [currentTitle] should then contain the required value.

Once you confirm this, you can expand the code to save/check against previous values.

Re: Browser Title checking

PostPosted: Wed Jan 14, 2015 4:49 am
by Dudus
Thank you!