Official Luthiers Forum!

Owned and operated by Lance Kragenbrink
It is currently Fri May 16, 2025 5:11 pm


All times are UTC - 5 hours





Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject:
PostPosted: Sat Jan 06, 2007 9:24 am 
Offline
Old Growth Brazilian Rosewood
Old Growth Brazilian Rosewood
User avatar

Joined: Mon Dec 27, 2004 1:20 pm
Posts: 5915
Location: United States

I have an HTML question, I don't use this command very often and forget the syntax (and all my books are at the office).

Does anybody know the parameters for controlling a new window spawned from an "a href" command using the target=blank parameter.

Specifically what I am looking for is to control the size of the window and surpressing the menus.

TIA


_________________
Brock Poling
Columbus, Ohio
http://www.polingguitars.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 2:08 pm 
Offline
Contributing Member
Contributing Member
User avatar

Joined: Wed Feb 15, 2006 7:37 am
Posts: 4815
Controlling the window size is a java command, but the other half you're
looking for is <a href="url"target="_blank">yada</a>

It comes from using old school frames. target="frameName".


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 2:25 pm 
Offline
Contributing Member
Contributing Member
User avatar

Joined: Wed Feb 15, 2006 7:37 am
Posts: 4815
I googled for some java script and this looks like the best option.

This will go in the head:

<SCRIPT LANGUAGE="JavaScript">
<!--
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "',
'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar
=1,resizable=1,width=400,height=400
');");
}
-->
</script>

The variables are in blue. 1 means yes, and 0 means no. If you don't
want your window to show your url, location=0. If you don't want a
toolbar, toolbar=0.    

This will be how you build your link:

<a href="javascript:popUp('http://url.com')">Open the Popup
Window</a>

And enter your urlJames Orr39088.9353935185


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 06, 2007 3:03 pm 
Offline
Old Growth Brazilian Rosewood
Old Growth Brazilian Rosewood
User avatar

Joined: Mon Dec 27, 2004 1:20 pm
Posts: 5915
Location: United States

Perfect... thank you.


_________________
Brock Poling
Columbus, Ohio
http://www.polingguitars.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 8:18 am 
Offline
Contributing Member
Contributing Member
User avatar

Joined: Wed Feb 15, 2006 7:37 am
Posts: 4815
Sure thing. I've wondered about it, too .


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
phpBB customization services by 2by2host.com