Javascript: Opening New Window
            

ncthakur.itgo.com  Javascript: Opening New Window

         NEPAL     |     ARTICLES     |     KAVITAHARU    |     MANTHAN    |     COOL LINKS    |     GUESTBOOK    |     SEARCH

JAVASCRIPT
As I have learned as a beginner:
1. Opening New Window

2. Use of Alert, Prompt & Confirm

3. Document Write

4. Use of Function

5. Event Handlers (Image Rollover)

6. If and Else Statement

7. Predefined Object (Date)

8. Cut & Paste JavaScript

NEPAL
Overview of Nepal
Map & images
Nepalese websites

KAVITAHARU
View few of my poems
written in Nepali language

ARTICLES
Articles on
crime prevention
investigation
& crime control

COOL LINKS
Computer
Travel & Tour
Police World
Downloads
Personality Test
Nepal News
Crime & Police News
Nepali Music
Health
Horoscope
Monthly Poll
Other

ADD EMAIL
Search or add email to the search list.

GUESTBOOK
View to find out what other visitors have to say about this web site.

KURAKANI
Are you interested to chat? Go to Kurakani room.

FREE E-CARDS
Enormous free E-Cards of your choice. Send it to your friend and family members.

FREE SITE SUBMIT
Submit your web site to the major search engines here.

ABOUT ME
Click here to find out about me and view few of my photographs.

 

JavaScript as I am learning

Opening New Window

I am not an expert of Javascript Scripting Language. I am trying to learn and I know that I am just crawling in the field of JavaScript. I just wanted to share with you my experience as a beginner. Javascript is a scripting language that makes a web page more interactive and dynamic which is not possible through HTML(Hypertext Markup Language).It is enough to know that Javascript is not Java, which is used extensively by server rather than user.

JavaScript treats browser window as a window-object which has attributes: width, height, toolbar, location, directories, status, scrollbars, resizable, menubar etc.

For example
<script language="JavaScript">
<!-- hide from older browser
window.open("blank.htm","","width=250,height=300,status=yes,toolbar=no,menubar=no")
//-->
</script>
This will open a new small window containing blank.htm in addition to your current web page. Within a HTML-document you should write as shown above <script language="Javascript"> to begin and </script> to end. You must write <!-- before you begin to write your code and place //--> after the end of your code because the older browser(without JavaScript enabled) will not interpret the JavaScript Language and all your code will be seen in the web page if you don't write.


Another example
<script language="JavaScript">
<!-- hide from older browser
window.location="http://www.msn.com"
//-->
</script>
This will take you directly to MSN web page because the window.location is addressed to that place.It is exactly same as writing <a href="http://www.msn.com"></a> in HTML. But in my example (if you click), javascript 2nd page will be loaded. So you can change your own url, too.



Another example
<script language="JavaScript">
<!-- hide from older browser
window.status="Welcome to my web page"
//-->
</script>
You will see the message "Welcome to my web page" in the status bar of your web page at the bottom.

NEXT..........

Top

Home  | About Me  |  Nepal  |  Articles  | Kavitaharu  | Cool Links 
 Javascript  | Add Email  |  Guestbook