RegisterStartUpScript
This adds the javascript code at the end of the page before the closing of form tag.
RegisterClientScriptBlock
This adds the javascript code at the top of the page.
Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts
State various attributes of window.open ?
- channelmode - Specifies if window should be opened in channel mode. IE only.
- fullscreen - Specifies if window should be opened in full screen mode. IE only.
- height - Specifies the height of the window.
- left - Specifies the x coordinates of the window in pixels. IE only. See "screenX" as well.
- location - Specifies if the location bar of the window should be included.
- menubar - Specifies if the menu bar of the window should be included.
- resizable - Specifies if window should be resizable.
- screenX - Specifies the x coordinates of the window in pixels. NS only. See "left" as well.
- screenY - Specifies the x coordinates of the window in pixels. NS only. See "top" as well.
- scrollbars - Specifies if window should contain scrollbars.
- status - Specifies if the status bar of the window should be included.
- toolbar - Specifies if the toolbar of the window (ie: reload button) should be included.
- top - Specifies the y coordinates of the window in pixels. IE only. See "screenY" as well.
- width - Specifies the width of the window.
What are different parameters to window.open ?
Different parameters of window.open are :
Example :
window.open('www.google.com','win1','width=300,height=200,menubar');
- URL - Specifies url of page to open
- Name - Assigns a target name to the newly opened window.
- Attributes - Controls the look of the opened window
Example :
window.open('www.google.com','win1','width=300,height=200,menubar');
How to redirect a page using JavaScript ?
Use window.location i.e window.location="http://www.redirectpage.com/redirect.html";
Subscribe to:
Posts (Atom)
Popular Posts
-
Stored Procedure vs Function Stored procedure cannot be executed using SQL Select command whereas Function (UDF) can be executed using SQL ...
-
SSRS stands for SQL Server Reporting Services . SSRS is server based reporting platform. It provides reporting functionality from different ...
-
Criteria BasicHttpBinding WsHttpBinding Security support This supports the old ASMX style, i.e. WS-BasicProfile 1.1. This exposes web ser...
-
Database Connection - Datereader requires an open database connection whereas Dataset does not require an open database connection Namespa...
-
IIS provides a variety of authentication schemes: • Anonymous (enabled by default) - Client does not provide any credetials • Basic - ...
-
Different types of diagrams in UML : UseCase diagram Class diagram Object diagram State diagram Sequence diagram Collaboration diagram...
-
Extents are basic unit in which space is allocated to tables and indexes. Extent is eight contiguous pages i.e 64 KB.
-
Normalization is a method to seperate data into multiple tables and relate these multiple tables. Some benefits of normalized database : 1)...
-
Refer below code to understand : using System; delegate void DelMethod(int x); // This is the delegate declaration // Example is Class c...
-
Authorization is used to determine whether user has access to resource or not. There are two ways to authorize a resource : File authoriza...