Hi, I have created a pop up window using the following code:
<a href="Index.aspx" onclick='window.open("special.aspx?id=1",null,"height=400,width=500,status=yes,toolbar=no,menubar=no,location=no");'>Take a test</a>
this works fine, except its not actually what i want.
what i am actually looking for is, on this forum when u type up a question there is a button called SOURCE CODE.. on the far right. that window that pops up like that is what i want to create.
there will be a link on the home page saying TAKE A TEST and then in the pop up window will be about 5 questions.
ok, i am trying to get a pop up screen. but not a normal window like i did with the code above. i have tried finding examples, but now cannot remember any sites offhand.
the best example is right here on this site.
when u typing a post, click on the button called source code, by the smily toolbar... i want a window that pops up like that..... where i will have some text and some radio buttons with yes and no text. and a close button. thats it... is it possible?
mlgrin
Member
33 Points
108 Posts
HOW TO: create pop up window....
Nov 20, 2008 10:52 AM|LINK
Hi, I have created a pop up window using the following code:
<a href="Index.aspx" onclick='window.open("special.aspx?id=1",null,"height=400,width=500,status=yes,toolbar=no,menubar=no,location=no");'>Take a test</a>A1ien51
All-Star
29935 Points
5821 Posts
Re: HOW TO: create pop up window....
Nov 20, 2008 01:25 PM|LINK
What is wrong with the code above? If you want to cancel the link action, add return false to the end.
Eric
mlgrin
Member
33 Points
108 Posts
Re: HOW TO: create pop up window....
Nov 20, 2008 01:35 PM|LINK
hi, thanks for the response... but that doesnt change anything...
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: HOW TO: create pop up window....
Nov 20, 2008 01:46 PM|LINK
Not sure that I understand what you want either. Please list exactly what you are trying to do in more detail.
NC...
mlgrin
Member
33 Points
108 Posts
Re: HOW TO: create pop up window....
Nov 20, 2008 05:22 PM|LINK
ok, i am trying to get a pop up screen. but not a normal window like i did with the code above. i have tried finding examples, but now cannot remember any sites offhand.
the best example is right here on this site.
when u typing a post, click on the button called source code, by the smily toolbar... i want a window that pops up like that..... where i will have some text and some radio buttons with yes and no text. and a close button. thats it... is it possible?
thank you
mlgrin
Member
33 Points
108 Posts
Re: HOW TO: create pop up window....
Nov 20, 2008 05:23 PM|LINK
also the pop up screen will pop up from a link, for example
click here, pop up appears (not taking the user away from their current page)...
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: HOW TO: create pop up window....
Nov 20, 2008 05:36 PM|LINK
You've got to create that look. There is no ready made solution to do all of that.
NC...
mlgrin
Member
33 Points
108 Posts
Re: HOW TO: create pop up window....
Nov 20, 2008 05:43 PM|LINK
how do u create that look? doesnt have to be exactly like that... is there a way?
NC01
All-Star
82577 Points
15430 Posts
MVP
Re: HOW TO: create pop up window....
Nov 20, 2008 05:54 PM|LINK
I suggest that you start here: http://quickstarts.asp.net/QuickStartv20/default.aspx
NC...