Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,
I want to display my new html window,after i click html button in my previous html page.

advnce thanks,
Posted

eg :
XML
<button onclick="window.open('http://google.com')">Open</button>
 
Share this answer
 
v2
try this:

<input type="button"  onclick="window.open('newpage.html')" value="open new window"></input>


hope it helps :)
 
Share this answer
 
v3
Comments
ztew 21-Jul-11 1:25am    
that was work at onclick="window.open('newpage.htm')" properly.
Uday P.Singh 21-Jul-11 2:05am    
and what i did wrong here?
ztew 21-Jul-11 6:38am    
onclick="window.open('newpage.html')".Its ur coding.But in my example onclick="window.open('newpage.htm')" works properly.I think both r deals with html page.But some times .htm was ran properly in my system.
what u say about this?
Uday P.Singh 21-Jul-11 6:54am    
newpage.htm and newpage.html both are same, all browsers treat both same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900