popup window from .ascx file

Posted on 2004-09-16
Last Modified: 2012-06-27
please help me create a popup window from a .ascx file. I'm unsure how to do this since the file does not have <head> tags to put my javascript in. the popup window is html and i need it to be small and without toolbars. is it possible to put code in the html file to get this done?
Question by:coletteck8
LVL 35

Expert Comment

ID: 12075696
put javascript there by adding <script language="javascript"> </script> tags
LVL 35

Accepted Solution

YZlat earned 40 total points
ID: 12075731
or you could put your javascript on the page that will include your ascx file but the best way (so you don't get confused later on) it's better to just add <script language="javascript"> </script> tags to your ascx page. You don't need to have <head>

Author Comment

ID: 12075805
so i can put the <script language = "javascript"> anywhere on the page?
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.


Assisted Solution

darksinclair earned 40 total points
ID: 12075935
coletteck8 : a <SCRIPT> tag and </SCRIPT> tag are independant of any other tags.. Ie : they can be on any page regardless of what else is there.  so Yes you can pug a <SCIRPT language="javascript"> anywhere on the page even if you do not have a <HEAD> or <BODY> or anything else.

LVL 35

Expert Comment

ID: 12076284
yeah, anywhere
LVL 23

Assisted Solution

apresto earned 45 total points
ID: 12077027
try this site:

its a cheap way out but it genarates the pop up code for you - all you have to do is specify the width and height and some other properties and BAM, its yours, also try this one out if u get no joy with that one: pop-up-window-generator.asp


Author Comment

ID: 12077196
thanks everybody for all your help. i got it working!

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: and…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question