| Author |
Topic Search Topic Options
|
rcalvert
Groupie
Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
|
Post Options
Thanks(0)
Quote Reply
Topic: Pop Up Window From Shortcut 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
|
|
|
 |
kasl_33
Groupie
Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
|
Post Options
Thanks(0)
Quote Reply
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>
|
|
|
 |
rcalvert
Groupie
Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
MorningZ
Senior Member
Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
kasl_33
Groupie
Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
|
Post Options
Thanks(0)
Quote Reply
Posted: 25 November 2003 at 6:21pm |
|
I kind of figured that out too.
|
|
|
 |
rcalvert
Groupie
Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
|
Post Options
Thanks(0)
Quote Reply
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 
|
|
|
 |
eksimba
Groupie
Joined: 23 April 2003
Location: United States
Status: Offline
Points: 48
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
kasl_33
Groupie
Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |