Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Pop Up Window From Shortcut
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Pop Up Window From Shortcut

 Post Reply Post Reply
Author
rcalvert View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote rcalvert Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post 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>

www.kasl.info

The PHP/MySql Web Development site
Back to Top
rcalvert View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote rcalvert Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2003 at 6:21pm
I kind of figured that out too.
www.kasl.info

The PHP/MySql Web Development site
Back to Top
rcalvert View Drop Down
Groupie
Groupie
Avatar

Joined: 24 July 2003
Location: United Kingdom
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote rcalvert Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
eksimba View Drop Down
Groupie
Groupie


Joined: 23 April 2003
Location: United States
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote eksimba Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kasl_33 View Drop Down
Groupie
Groupie
Avatar

Joined: 15 June 2003
Location: United States
Status: Offline
Points: 86
Post Options Post Options   Thanks (0) Thanks(0)   Quote kasl_33 Quote  Post ReplyReply Direct Link To This Post 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.
www.kasl.info

The PHP/MySql Web Development site
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.