Hi,friends while using HTML tags and javascript i tried to open and close a window using javascript

and i used the below scripts to open and close the windows.

Set the below link as hyperlink  and click on the link to open new window.

javascript:top.open()

Set the below link as hyperlink and click on the link to close the current window.

 

javascript:top.close()


Note:works in IE 6 or Higher Versions

 


Like it on Facebook, Tweet it or share this article on other bookmarking websites.

Comments (0)

There are no comments posted here yet

What's your favorite brand of PCs?

What's your favorite brand of PCs? vote your opinion friends..
No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum 0 answer(s) and maximum 5 answer(s).
/polls/computers-and-technology/5975-whats-your-favorite-brand-of-pcs.json?task=poll.vote
5975
radio
[{"id":"20583","title":"Acer","votes":"15","type":"x","order":"0","pct":14.71,"resources":[]},{"id":"20584","title":"Dell","votes":"38","type":"x","order":"0","pct":37.25,"resources":[]},{"id":"20585","title":"HP","votes":"31","type":"x","order":"0","pct":30.39,"resources":[]},{"id":"20586","title":"Sony","votes":"14","type":"x","order":"0","pct":13.73,"resources":[]},{"id":"20587","title":"other","votes":"4","type":"x","order":"0","pct":3.92,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
No married couple wants to end up getting divorced. It is not like they have planned for it. They try to put up with their partners for as long as they
Due to our modern lifestyle, we feel that digestion related disorders are a common problem. Thus, we neither give importance to them nor seek any help
The bond of marriage brings the two people together. Initially, everything may seem okay and both of them slowly start discovering each other in the journey.
Why to choose Java? In the computer market, being able to use Java is a crucial knowledge. Java is a development terminology used to build compelling
DATABASE CONNECTIVITY This articles explains the need of database connectivity, the way it is achieved through Java using the JDBC(java database connectivity)
  Write your first simple java program.   First of all we need is a placewhere we can write your Java code. All Java programs are written using
Array of objects in Java Arrays are defined as block of continous memory locations which are arranged in one after another. Elements of the Array can
Synchronized block is alternative mechanism for "synchronized" methods.If we inherihate the non synchronized blocks either from base class or interface