Page 1 of 1

Title of the browser's tab

Posted: Sat Jul 18, 2015 1:00 pm
by Angelo
So far, the "title line" in the html-file is always

Code: Select all

<title>SpiderBasic</title>
and it can only be changed by opening and changing the html-file itself.
It would be nice if the developer could change the title via SB-code. My suggestion:

Code: Select all

SetTitle("my title")

Re: Title of the browser's tab

Posted: Mon Feb 08, 2016 5:51 pm
by sworteu
Angelo wrote:So far, the "title line" in the html-file is always

Code: Select all

<title>SpiderBasic</title>
and it can only be changed by opening and changing the html-file itself.
It would be nice if the developer could change the title via SB-code. My suggestion:

Code: Select all

SetTitle("my title")

Code: Select all

Procedure SetTitle( Title.s )
! document.title = v_title;
EndProcedure

Re: Title of the browser's tab

Posted: Mon Feb 08, 2016 6:18 pm
by Peter
sworteu wrote:

Code: Select all

Procedure SetTitle( Title.s )
! document.title = v_title;
EndProcedure
but for the duration of loading the page (until setting the title with the code above), "SpiderBasic" appears as title.

It's better when the compiler modifies the Title-Tag in the HTML-File.

Greetings ... Peter