Irish SEO,  Marketing & Webmaster Discussion

 

Javascript - Open and configure new browser

This is a discussion on Javascript - Open and configure new browser within the Coding Help forums, part of the Webmaster Help category; Howdo, I want a link on a page that opens a new browser window, stripped of toolbars and the likes. ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Coding Help

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-01-2007, 03:43 PM
Wannabe Geek
 
Join Date: Nov 2006
Location: Carlow
Posts: 117
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wheres me jumpa will become famous soon enough
Send a message via AIM to wheres me jumpa Send a message via MSN to wheres me jumpa
Default Javascript - Open and configure new browser

Howdo,

I want a link on a page that opens a new browser window, stripped of toolbars and the likes. Ive found plenty of examples to work from but I cant seem to get it working. Heres what I have:

Code:
<A HREF=\"javascript:void(0)\" onClick=\"window.open('player.php?action=bb&type=pls','Player','width=325,height=330, status=yes, directories=no, toolbar=yes, location=no, menubar=no,scrollbars=no, resizable=no');\" >Click</A>
Any help appreciated,

Jumpa
__________________
“When you want something, all the world conspires in helping you to achieve it.”

www.waffle.ie

waffle.ie/members/wheres me jumpa

Waffle Arcade
Waffle Casino
Waffle Radio
Waffle TV

NSFW.ie

wheresmejumpa.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 20-01-2007, 03:44 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

what's with the back slashes?
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Directory Submission Directory Submission
:. News & Press Release Ireland GiveItSocks.com
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 20-01-2007, 03:45 PM
Wannabe Geek
 
Join Date: Nov 2006
Location: Carlow
Posts: 117
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wheres me jumpa will become famous soon enough
Send a message via AIM to wheres me jumpa Send a message via MSN to wheres me jumpa
Default

Sorry, its being echoed in PHP so I have escaped the double quotes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 20-01-2007, 03:54 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

try this function:
Code:
<script language="javascript"> 
   function PopupPic() { 
     window.open( "yourpagehere.html", "",  
     "resizable=1,scrollbars=1,width=200,height=200,left = 50,top = 50"); 
   } 
</script>
and to call it use:
Code:
echo "<a href=\"javascript:PopupPic()\">Click</a>";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 20-01-2007, 04:01 PM
Wannabe Geek
 
Join Date: Nov 2006
Location: Carlow
Posts: 117
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wheres me jumpa will become famous soon enough
Send a message via AIM to wheres me jumpa Send a message via MSN to wheres me jumpa
Default

Louie,

Tip of the cap kind sir. Thanks very much.

Jumpa
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 20-01-2007, 04:09 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

if you need to pass dynamic id's change the function to:

Code:
function PopupPic(your_var){
 window.open( "yourpagehere.php?id="+your_var, "",  
     "resizable=1,scrollbars=1,width=200,height=200,left = 50,top = 50"); 
}
then call it like this:
Code:
echo "<a href=\"javascript:PopupPic($your_id_here)\">Click</a>";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 20-01-2007, 04:13 PM
Wannabe Geek
 
Join Date: Nov 2006
Location: Carlow
Posts: 117
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
wheres me jumpa will become famous soon enough
Send a message via AIM to wheres me jumpa Send a message via MSN to wheres me jumpa
Default

Nice one louie,

That was my next question!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 20-01-2007, 04:32 PM
louie's Avatar
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,048
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

anytime.
glad it worked out for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
browser, configure, javascript, open

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:38 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0