Print Page | Close Window

Pop Up Window From Shortcut

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=7589
Printed Date: 31 March 2026 at 11:22pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Pop Up Window From Shortcut
Posted By: rcalvert
Subject: Pop Up Window From Shortcut
Date Posted: 25 November 2003 at 7:33am

Can anybody tell me how I can open a pop up window from a desktop shortcut with no toolbars etc. its for an online database app im building.  It doesn't matter what i need to use java script etc.

Many Thanks in Advance



-------------



Replies:
Posted By: kasl_33
Date Posted: 25 November 2003 at 10:45am

<a href="#" onClick="MyWindow=window.open('http://www.yoursite.com/whate ver.asp','MyWindow','toolbar=no,
location=no,directories=no,status=no,menubar=no,scrollbars=y es,
resizable=no,width=550,height=500'); return false;">Here is the link</a>



-------------
http://www.kasl.info - www.kasl.info

The PHP/MySql Web Development site


Posted By: rcalvert
Date Posted: 25 November 2003 at 5:00pm

Sorry , I know how to do that what i want to do is open it from a shortcut.  Not an existing page.

Thanks



-------------


Posted By: MorningZ
Date Posted: 25 November 2003 at 5:35pm

you cannot have a shortcut without an "exisiting page/file", the shortcut has to point to something



-------------
Contribute to the working anarchy we fondly call the Internet


Posted By: kasl_33
Date Posted: 25 November 2003 at 6:21pm
I kind of figured that out too.

-------------
http://www.kasl.info - www.kasl.info

The PHP/MySql Web Development site


Posted By: rcalvert
Date Posted: 26 November 2003 at 2:52am

I found this

 

<HTML>
<HEAD>
<TITLE> TEST DOC </TITLE>
</HEAD>
<BODY>
<script language="javascript">
<!--

top.window.moveTo(3000,30000);
top.window.resizeTo(1,1); open('http://www.mysite.com','blwy','width=900,height=644,sc rollbars=no,menubar=no,directories=no,status=no,titlebar=no' );window.opener=''; window.close();
-->


</script>


</BODY>
</HTML>

this is just what i needed, can anybody tell me how i can centre the window though.

Thanks



-------------


Posted By: eksimba
Date Posted: 26 November 2003 at 9:57am

I saw some code a while ago that centered the popup window on the screen by using the viewer's screen resolution as a guide. There's probably a better way...


function openWindow()
{
var winw = (screen.width - 300) / 2;
var winh = (screen.height - 200) /2;
window.open('http://www.yoursite.com/popup.htm','Jump','scro llbars=no,addressbar=no,height=200,width=300,left='+winw+',t op='+winh+'');
 
}



-------------
- eric


Posted By: kasl_33
Date Posted: 26 November 2003 at 10:49am
I didn't even think of opening it like regular and reformatting the window once it was open.  Way to use the resources.

-------------
http://www.kasl.info - www.kasl.info

The PHP/MySql Web Development site



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net