Forum Moderators: coopster

Message Too Old, No Replies

opening a new window

new window to be opened on the click of a button

         

swati

1:13 pm on Oct 27, 2004 (gmt 0)

10+ Year Member



I have a button "ASSIGN". Upon clicking this button i want a new window to be opened which is of small size(i dont want the window to be maximised or anything).
How do i do that?

That apart how do i design that page so that it looks just like the others.

Regards
Swati

dreamcatcher

2:04 pm on Oct 27, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to look into javascript and its window.open(), onclick() & onsubmit() functions for what you want. There are other methods, but this cannot be done with PHP.

Target

12:23 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



This is a fairly good bit of code for what you want I think.


<A HREF="" onClick="window.open('newpage.html', 'newpage', 'width=300,height=180'); return false;">Click me.</A>

Hope it helps.

- Matt

swati

12:32 pm on Oct 28, 2004 (gmt 0)

10+ Year Member



thanks so much!