Reply
Surpressing toolbars
Old 01-17-2005, 02:48 AM Surpressing toolbars
larryweiss's Avatar
Super Talker

Posts: 108
Location: NEW YORK
I am creating a popup with an ordinary html link & target_blank

The new window has the following in the head

<script>self.resizeTo(550,510);
self.moveTo(165,20);
</script>

It works well. Is there anything I can add in here which would surpress any or all of , munubar, toolbar, statusbar?

Keep any answers very explicit please, I know almost nothing about scripting.
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
When You Register, These Ads Go Away!
Old 01-17-2005, 03:56 AM
log2's Avatar
Skilled Talker

Posts: 80
well I do believe this would work:
Code:
<script>
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
</script>
Just set the variables to what they should be, the url, height, width etc.

Last edited by log2 : 01-17-2005 at 05:14 AM.
log2 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 04:40 AM
larryweiss's Avatar
Super Talker

Posts: 108
Location: NEW YORK
Does this go into the body where I currently have the link. Or does it go into the head, and it gets called from the body.

The "url" part is pretty clear; "page . htm"?

The "name" part mystifies me.

I am sorry to be so ill informed, but thats why we are here, right?

Thanks
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
Old 01-17-2005, 04:46 AM
log2's Avatar
Skilled Talker

Posts: 80
the name is the part that appears in the top(the blue part) of the browser... you would normally do this with the <title></title> tags, uhhh ya it can go anywhere in the head

Last edited by log2 : 01-17-2005 at 05:11 AM.
log2 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 05:30 AM
log2's Avatar
Skilled Talker

Posts: 80
After testing I found that it can be anywhere in the body and it must be like this:
HTML Code:
<script>
newwindow=window.open('url','name','height=500,width=400,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
</script>
That has been revised from the other code which looked like:
Code:
<script>
newwindow=window.open(url,'name','height=500,width=400,left=100,
top=100,resizable=no,scrollbars=no,toolbar=no,status=no');
</script>
If you'll notice the url now has '' around it, and there is no return so there shouldn't be any errors now

By the way, you have to take out the spaces which this is adding automatically...

and one more thing, If you want it to open a new window from a link just say so and i will revise it so that you can click on a link and it will open the window right now it opens automatically when the page loads

Last edited by log2 : 01-17-2005 at 05:36 AM.
log2 is offline
Reply With Quote
View Public Profile
 
Old 01-17-2005, 03:19 PM
larryweiss's Avatar
Super Talker

Posts: 108
Location: NEW YORK
LOG2, you are amazing.

Yes making a popup is exactly what I want. Please do add it and thanks so much.
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
Old 01-17-2005, 03:42 PM
larryweiss's Avatar
Super Talker

Posts: 108
Location: NEW YORK
Scratch that. I will try it first, before you go through the effort.
larryweiss is offline
Reply With Quote
View Public Profile Visit larryweiss's homepage!
 
Old 01-18-2005, 03:15 AM hi
Mooofasa's Avatar
Defies a Status

Posts: 1,612
Name: Michael (mik) Land
Location: England
Are you coding by hand or by WYSIWYG?

If you use Dreamweaver or Namo Webeditor then it comes with an open link in new window option, that allows you to change all aspects of it easily.


--twitch
__________________
Tumblings.co.uk - Tumblog with thoughts, quotes, links, videos, images and my creations.
Opera Browser - The best free web browser.
Opera Dev Tools - Firefox is now Firefail.
Mooofasa is offline
Reply With Quote
View Public Profile Visit Mooofasa's homepage!
 
Old 01-22-2005, 07:13 PM
log2's Avatar
Skilled Talker

Posts: 80
Quote:
and one more thing, If you want it to open a new window from a link just say so and i will revise it so that you can click on a link and it will open the window right now it opens automatically when the page loads
So do you need it to do that? just incase here is the code:
PHP Code:
<script>
function 
linkto(inputurl){
newwindow=window.open(inputurl,'name','height=590,width=800,left=100,top=85,resizable=no,scrollbars=yes,toolbar=no,status=no');
}
</script> 
NOTE: Do not change the inputurl in this one!
And then if you want the link to open the page just make the link look like this:
HTML Code:
<a href="javascript:linkto('url.htm')">
The url goes where it's called url.htm
log2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Surpressing toolbars
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.25769 seconds with 12 queries