菜单的调用(急,在线)

super_cha 2002-09-12 09:35:49
我用js如何调用菜单里的saveas.请各位高手指点
...全文
81 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiushuiwuhen 2002-09-12
  • 打赏
  • 举报
回复
<body>
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<input type="button" name="Button" value="保存网页" onClick="document.all.WebBrowser.ExecWB(4,1)">
<input type=button onclick=document.execCommand("saveas") value=另存为>
super_cha 2002-09-12
  • 打赏
  • 举报
回复
能不能具体点,加点文字说明。我的js很菜,被迫才用的
yonghengdizhen 2002-09-12
  • 打赏
  • 举报
回复
bSuccess = object.execCommand(sCommand [, bUserInterface] [, vValue])

SaveAs Saves the current Web page to a file.


Command Identifiers

2D-Position Allows absolutely positioned elements to be moved by dragging.
AbsolutePosition Sets an element's position property to "absolute."
BackColor Sets or retrieves the background color of the current selection.
BlockDirLTR Not currently supported.
BlockDirRTL Not currently supported.
Bold Toggles the current selection between bold and nonbold.
BrowseMode Not currently supported.
Copy Copies the current selection to the clipboard.
CreateBookmark Creates a bookmark anchor or retrieves the name of a bookmark anchor for the current selection or insertion point.
CreateLink Inserts a hyperlink on the current selection, or displays a dialog box enabling the user to specify a URL to insert as a hyperlink on the current selection.
Cut Copies the current selection to the clipboard and then deletes it.
Delete Deletes the current selection.
DirLTR Not currently supported.
DirRTL Not currently supported.
EditMode Not currently supported.
FontName Sets or retrieves the font for the current selection.
FontSize Sets or retrieves the font size for the current selection.
ForeColor Sets or retrieves the foreground (text) color of the current selection.
FormatBlock Sets the current block format tag.
Indent Increases the indent of the selected text by one indentation increment.
InlineDirLTR Not currently supported.
InlineDirRTL Not currently supported.
InsertButton Overwrites a button control on the current selection.
InsertFieldset Overwrites a box on the current selection.
InsertHorizontalRule Overwrites a horizontal line on the current selection.
InsertIFrame Overwrites an inline frame on the current selection.
InsertImage Overwrites an image on the current selection.
InsertInputButton Overwrites a button control on the current selection.
InsertInputCheckbox Overwrites a check box control on the current selection.
InsertInputFileUpload Overwrites a file upload control on the current selection.
InsertInputHidden Inserts a hidden control on the current selection.
InsertInputImage Overwrites an image control on the current selection.
InsertInputPassword Overwrites a password control on the current selection.
InsertInputRadio Overwrites a radio control on the current selection.
InsertInputReset Overwrites a reset control on the current selection.
InsertInputSubmit Overwrites a submit control on the current selection.
InsertInputText Overwrites a text control on the current selection.
InsertMarquee Overwrites an empty marquee on the current selection.
InsertOrderedList Toggles the current selection between an ordered list and a normal format block.
InsertParagraph Overwrites a line break on the current selection.
InsertSelectDropdown Overwrites a drop-down selection control on the current selection.
InsertSelectListbox Overwrites a list box selection control on the current selection.
InsertTextArea Overwrites a multiline text input control on the current selection.
InsertUnorderedList Toggles the current selection between an ordered list and a normal format block.
Italic Toggles the current selection between italic and nonitalic.
JustifyCenter Centers the format block in which the current selection is located.
JustifyFull Not currently supported.
JustifyLeft Left-justifies the format block in which the current selection is located.
JustifyNone Not currently supported.
JustifyRight Right-justifies the format block in which the current selection is located.
LiveResize Causes the MSHTML Editor to update an element's appearance continuously during a resizing or moving operation, rather than updating only at the completion of the move or resize.
MultipleSelection Allows for the selection of more than one site selectable element at a time when the user holds down the SHIFT or CTRL keys.
Open Not currently supported.
Outdent Decreases by one increment the indentation of the format block in which the current selection is located.
OverWrite Toggles the text-entry mode between insert and overwrite.
Paste Overwrites the contents of the clipboard on the current selection.
PlayImage Not currently supported.
Print Opens the print dialog box so the user can print the current page.
Redo Not currently supported.
Refresh Refreshes the current document.
RemoveFormat Removes the formatting tags from the current selection.
RemoveParaFormat Not currently supported.
SaveAs Saves the current Web page to a file.
SelectAll Selects the entire document.
SizeToControl Not currently supported.
SizeToControlHeight Not currently supported.
SizeToControlWidth Not currently supported.
Stop Not currently supported.
StopImage Not currently supported.
StrikeThrough Not currently supported.
Subscript Not currently supported.
Superscript Not currently supported.
UnBookmark Removes any bookmark from the current selection.
Underline Toggles the current selection between underlined and not underlined.
Undo Not currently supported.
Unlink Removes any hyperlink from the current selection.
Unselect Clears the current selection.



super_cha 2002-09-12
  • 打赏
  • 举报
回复
如果无法实现,请回话,如果有方法,请说明具体实现方法

87,920

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧