Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   document.open in javascript (http://www.go4expert.com/forums/documentopen-in-javascript-t1988/)

Cguckian 24Nov2006 18:12

document.open in javascript
 
how does it work - any help please - thanks

shabbir 24Nov2006 23:04

Re: document.open in javascript
 
You have submitted this in Articles and source code section. Moved to the Queries and discussion forum .

pradeep 25Nov2006 11:34

Re: document.open in javascript
 
Opens a new window and loads a document specified by a given URL. This method can also be used to open a new window which uses the sUrl and sWindowName parameters to collect the output of the write and writeln methods.

Parameters:

sUrl => Required. When opening a new window, sUrl is a String that specifies the URL to render in the new window.

sName => Optional. When opening up a new document, specifying the String replace for sName designates that the new document is to replace the current document in the history list. Other values are _blank,_parent,_top.

sFeatures => Optional. This String parameter is a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes").

Example:

HTML Code:

<button onclick="open('Sample.htm');">
 Click this button and document.open() is called.
 </button>

Code: JavaScript

document.open("www.go4expert.com",'newWindow',"height=350,width=600,location=no,menubar=no,resizable=no,status=no,toolbar=no,directories=no,scrollbars=yes");



All times are GMT +5.5. The time now is 15:47.