14 typical JavaScript codes, which can be easily viewed and learned by favorites, including opening, saving as, attributes, printing, page setting, refreshing, importing to favorites, and importing to favorites, add to favorites, sort favorites, view source files, set languages, and move forward and backward. These common functions are frequently used and very practical. They are easy to use later ■ open ■
<Input name = button onclick = Document. All. webbrowser. execwb (1,1) type = button value = open>
<Object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Save As ■
<Input name = button onclick = document. all. webbrowser. execwb (4,1) type = button value = Save As> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Attribute ■
<Input name = button onclick = document. all. webbrowser. execwb (10, 1) type = button value = property> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Print ■
<Input name = button onclick = document. all. webbrowser. execwb (6, 1) type = button value = print> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Page settings ■
<Input name = button onclick = document. all. webbrowser. execwb (8, 1) type = button value = page Settings> <object classid = CLSID: 8856f961-340a-11d0-a96b-00c04fd705a2 Height = 0 id = webbrowser width = 0> </Object>
■ Refresh ■
<Input type = button value = Refresh name = Refresh onclick = "window. Location. Reload ()">
■ Import to favorites ■
<Input type = "button" name = "button" value = "Import favorites" onclick = Window. External. importexportfavorites (true,);>
■ Export to favorites ■
<Input type = "button" name = "button3" value = "Export favorites" onclick = Window. External. importexportfavorites (false,);>
■ Add to favorites ■
<Input name = button2 onclick = "window. External. AddFavorite (location. href, document. Title)" type = button value = add to favorites>
■ Sort favorites ■
<Input name = submit2 onclick = "window. External. showbrowserui (organizefavorites, null)" type = button value = favorites>
■ View the original file ■
<Input name = button onclick = Window. Location = "view-source:" + window. Location. href type = button value = View Source File>
■ Language settings ■
<Input name = button onclick = "window. External. showbrowserui (languagedialog, null)" type = button value = language Settings>
■ Qianjin ■
<Input name = submit onclick = history. Go (1) type = submit value = forward>
■ Retreat ■
<Input name = submit2 onclick = history. Go (-1) type = submit value = back>