JavaScript About Popup

来源:互联网 发布:长得像混血儿 知乎 编辑:程序博客网 时间:2024/05/21 09:50

http://www.aspnetcenter.com/cliktoprogram/javascript/window.asp 

 

PropertyDescriptionSyntaxClosedReturns boolean value to determine if a window has been closedwindow.closeddefaultStatusDefines the default message displayed in a window's statusbarwindow.defaultStatus(="message")documentDefines the document to be displayed in a windowwindow.documentframesReturns an array containing references to all the named child frames in the current windowwindow.frames(="frameId")historyReturns the history list of visited URLswindow.historyinnerHeightReturns the height of a window's display areawindow.innerHeight = valueinnerWidthReturns the width of a window's display areawindow.innerWidth = valuelengthReturns the number of frames in a windowwindow.lengthlocationThe URL of a website loaded into a windowwindow.locationlocationbarA window's location bar (the property is visible)window.locationbar.visible=falsemenubarA window's menu bar (the property is visible)window.menubar.visible=falsenameUsed to set, or return a window's namewindow.nameopenerThe name of a window opened in a current windowwindow.openerouterHeightUsed to return the height of the outer area of a windowwindow.outerHeightouterWidthUsed to return the width of the outer area of a windowwindow.outerWidthpageXOffsetUsed to return the X-coordinate of a current windowwindow.pageXOffsetpageYOffsetUsed to return the Y-coordinate of a current windowwindow.pageYOffsetparentThe name of a window containing a particular windowwindow.parentpersonalbarReturns boolean value indicating the visibility of the directories barwindow.personalbar.visible=falsescrollbarsReturns boolean value indicating the visibility of the scrollbars barwindow.scrollbars.visible=falseselfUsed to refer to current windowself.methodstatusThe message displayed in a window's status barwindow.method="message"statusbarReturns boolean value indicating visibility of the status barwindow.statusbar.visible=falsetoolbarReturns boolean value indicating visibility of the tool barwindow.toolbar.visible=falsetopUsed to return the name of top-most windowwindow.topwindowUsed to return the current windowwindow.[property]or[method]MethodDescriptionSyntaxalert(message)Displays a text string on a dialog boxalert("Type message here")back()Loads previous page in the windowwindow.back()blur()Removes the focus from a windowwindow.blur()captureEvents()Sets a window to capture all events of a specified typewindow.captureEvent(eventType)clearTimeout()Clears a timeout (set with the setTimeout method)window.clearTimeout(timeoutID)close()Used to close a windowwindow.close()confirm(message)Displays a confirmation dialog box with a text messageconfirm("type message here")disableExternalCapture/
enableExternalCaptureDisables/Enables external event capturingwindow.disableExternalCapture( )/ 
window.enableExternalCapture( )focus()Used to give focus to a windowwindow.focus()forward()Loads the next page in a windowwindow.forward()handleEvent(event)Invokes the event handler for a specified eventwindow.handleEvent(eventID)moveBy(horizontal, vertical)Moves a window by the amount specified in the horizontal and vertical directionswindow.moveBy(HorValue, VerValue)moveTo(x, y)This method moves the window's left edge and top edge to the specified x and y coordinatesmoveTo(Xposition,Yposition)open()Used to open a windowwindow.open(url, name, attributes)print()Displays a print dialog boxwindow.print()prompt(message, defaultValue)Displays a prompt dialog boxwindow.prompt("Type message here", value)releaseEvents(event)Release any captured events of a specified typewindow.releaseEvents(eventType)resizeBy(horizontal, vertical)Resizes a window by the specified horizontal and vertical amountswindow.resizeBy(HorValue, VerValue)resizeTo(width, height)Resizes a window to the specified width and height amountswindow.resizeTo(widthValue,heightValue)scroll(x, y)Scrolls the window to the specified coordinateswindow.scroll(xValue, yValue)scrollBy(x, y)Scrolls the window's content area by the specified coordinateswindow.scrollBy(HorValue, VerValue)scrollTo(x, y)Scrolls the window's content area to the specified coordinateswindow.scrollTo(xValue, yValue)setInterval(expression, time)Evaluates an expression in millisecondswindow.setIntervals(expression, milliseconds)stop()Used to stop a window from loadingwindow.stop()
原创粉丝点击