Source language: Translate to:

Browser Title checking

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Browser Title checking

Postby Dudus » Tue Jan 13, 2015 4:37 am

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
User avatar
Dudus
 
Posts: 107
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Re: Browser Title checking

Postby Gaev » Tue Jan 13, 2015 6:15 am

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.
User avatar
Gaev
 
Posts: 3728
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Re: Browser Title checking

Postby Dudus » Wed Jan 14, 2015 4:49 am

Thank you!
User avatar
Dudus
 
Posts: 107
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest