Child pages
  • History

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: sub-section:description edited
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}History is a stack of form names that were visible on the screen ordered by appearance. 

Each container (the main application window or dialogs showing forms) has its own history stack. When the History object is accessed from within scripting, the methods of the History object will work with the history stack for the active container. 

Only main forms ( [currentcontroller|Globals#currentcontroller]) will be stored in History, so not forms displayed in tabpanels or splitpanes. 

The history has a maximum size of 10 entries. When the maximum size is reached, the oldest entries are automatically removed, to make place for new entries.{sub-section}\\ 

{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#buttonsEnabled]
Set/Get the history buttons enabled.{td}{tr}{tbody}{table}\\ 

{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#back]\()
Navigates back in the history stack; shows the previous form (if present).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#clear]\()
Clear the entire history stack.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#forward]\()
Navigates forward in the history stack; shows the next form (if present).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getCurrentIndex]\()
Get the current absolute index in the history stack.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getFormName]\(i)
Get the form name based on the specified absolute index in the history stack location.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#go]\(i)
Navigates to the relative index based on current position in the history.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeForm]\(formName)
Removes the named form item from the history stack (and from memory) if not currently shown.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeIndex]\(index)
Removes an absolute index based history stack form item.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#size]\()
Returns the total size of the history stack.{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=4B2716EA-DC04-41B3-88C1-826AB31ED468}{tr:id=name}{td}h6.buttonsEnabled{td}{tr}{tr:id=des}{td}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_des|text=|trigger=button}{sub-section}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_des|trigger=none|class=sIndent}Set/Get the history buttons enabled.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_ret|text=|trigger=button}{sub-section}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_see|text=|trigger=button}{sub-section}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_see|text=|trigger=button}{sub-section}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_sam|text=|trigger=button}{sub-section}{sub-section:4B2716EA-DC04-41B3-88C1-826AB31ED468_sam|class=sIndent|trigger=none}{code:language=javascript}
history.buttonsEnabled = true;
var status = history.buttonsEnabled;
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=FD42F35E-07F2-4AE8-B5AB-F94523B85548}{tr:id=name}{td}h6.back{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}back{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_des|text=|trigger=button}{sub-section}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_des|trigger=none|class=sIndent}Navigates back in the history stack; shows the previous form (if present).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_ret|text=|trigger=button}{sub-section}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_see|text=|trigger=button}{sub-section}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_see|text=|trigger=button}{sub-section}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_sam|text=|trigger=button}{sub-section}{sub-section:FD42F35E-07F2-4AE8-B5AB-F94523B85548_sam|class=sIndent|trigger=none}{code:language=javascript}
history.back();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C25B7A3E-0B47-4D01-8A12-C5732706AB48}{tr:id=name}{td}h6.clear{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}clear{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_des|text=|trigger=button}{sub-section}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_des|trigger=none|class=sIndent}Clear the entire history stack.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_ret|text=|trigger=button}{sub-section}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_see|text=|trigger=button}{sub-section}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_see|text=|trigger=button}{sub-section}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_sam|text=|trigger=button}{sub-section}{sub-section:C25B7A3E-0B47-4D01-8A12-C5732706AB48_sam|class=sIndent|trigger=none}{code:language=javascript}
history.clear();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=F43B9552-893C-48CC-9193-03E69C23A684}{tr:id=name}{td}h6.forward{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}forward{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_des|text=|trigger=button}{sub-section}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_des|trigger=none|class=sIndent}Navigates forward in the history stack; shows the next form (if present).{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_ret|text=|trigger=button}{sub-section}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_see|text=|trigger=button}{sub-section}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_see|text=|trigger=button}{sub-section}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_sam|text=|trigger=button}{sub-section}{sub-section:F43B9552-893C-48CC-9193-03E69C23A684_sam|class=sIndent|trigger=none}{code:language=javascript}
history.forward();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=76C8B37D-8EC8-4587-A852-959A1280A003}{tr:id=name}{td}h6.getCurrentIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getCurrentIndex{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_des|text=|trigger=button}{sub-section}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_des|trigger=none|class=sIndent}Get the current absolute index in the history stack.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_ret|text=|trigger=button}{sub-section}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_ret|trigger=none|class=sIndent}[Number] -- the current absolute index{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_see|text=|trigger=button}{sub-section}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_see|text=|trigger=button}{sub-section}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_sam|text=|trigger=button}{sub-section}{sub-section:76C8B37D-8EC8-4587-A852-959A1280A003_sam|class=sIndent|trigger=none}{code:language=javascript}
var abs_index = history.getCurrentIndex();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A152F39B-D0FC-4384-B5C2-C678C7B590D0}{tr:id=name}{td}h6.getFormName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getFormName{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_des|text=|trigger=button}{sub-section}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_des|trigger=none|class=sIndent}Get the form name based on the specified absolute index in the history stack location.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_prs|trigger=none}i -- the absolute index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_ret|text=|trigger=button}{sub-section}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_ret|trigger=none|class=sIndent}[String] -- the formName{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_see|text=|trigger=button}{sub-section}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_see|text=|trigger=button}{sub-section}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_sam|text=|trigger=button}{sub-section}{sub-section:A152F39B-D0FC-4384-B5C2-C678C7B590D0_sam|class=sIndent|trigger=none}{code:language=javascript}
var name = history.getFormName(history.getCurrentIndex());
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=C6D0AD3E-88D6-4D83-BDEC-8FEF56941858}{tr:id=name}{td}h6.go{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}go{span}{span:id=iets|style=float: left;}\(i){span}{td}{tr}{tr:id=des}{td}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_des|text=|trigger=button}{sub-section}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_des|trigger=none|class=sIndent}Navigates to the relative index based on current position in the history.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_prs|trigger=none}i -- the absolute index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_ret|text=|trigger=button}{sub-section}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_see|text=|trigger=button}{sub-section}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_see|text=|trigger=button}{sub-section}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_sam|text=|trigger=button}{sub-section}{sub-section:C6D0AD3E-88D6-4D83-BDEC-8FEF56941858_sam|class=sIndent|trigger=none}{code:language=javascript}
history.go(-3);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=1C9821BF-5E21-4672-98D5-B925BE93BB63}{tr:id=name}{td}h6.removeForm{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeForm{span}{span:id=iets|style=float: left;}\(formName){span}{td}{tr}{tr:id=des}{td}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_des|text=|trigger=button}{sub-section}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_des|trigger=none|class=sIndent}Removes the named form item from the history stack (and from memory) if not currently shown.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_prs|trigger=none}formName -- the name of the form to remove.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_ret|text=|trigger=button}{sub-section}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_see|text=|trigger=button}{sub-section}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_see|text=|trigger=button}{sub-section}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_sam|text=|trigger=button}{sub-section}{sub-section:1C9821BF-5E21-4672-98D5-B925BE93BB63_sam|class=sIndent|trigger=none}{code:language=javascript}
var done = history.removeForm('mypreviousform');
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=8A2E842B-E360-4E97-998A-EBF3EFB3263D}{tr:id=name}{td}h6.removeIndex{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeIndex{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_des|text=|trigger=button}{sub-section}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_des|trigger=none|class=sIndent}Removes an absolute index based history stack form item.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_prs|trigger=none}index -- the index of the form to remove.
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_ret|text=|trigger=button}{sub-section}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_ret|trigger=none|class=sIndent}[Boolean] -- true if successful{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_see|text=|trigger=button}{sub-section}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_see|text=|trigger=button}{sub-section}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_sam|text=|trigger=button}{sub-section}{sub-section:8A2E842B-E360-4E97-998A-EBF3EFB3263D_sam|class=sIndent|trigger=none}{code:language=javascript}
var done = history.removeIndex(history.getCurrentIndex()+1);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70}{tr:id=name}{td}h6.size{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}size{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_des|text=|trigger=button}{sub-section}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_des|trigger=none|class=sIndent}Returns the total size of the history stack.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_ret|text=|trigger=button}{sub-section}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_ret|trigger=none|class=sIndent}[Number] -- the size{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_see|text=|trigger=button}{sub-section}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_see|text=|trigger=button}{sub-section}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_sam|text=|trigger=button}{sub-section}{sub-section:DAB1DE5C-86A3-4FF9-A6D5-C0E0F811FE70_sam|class=sIndent|trigger=none}{code:language=javascript}
var size = history.size();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}