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. ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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>
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 |
| |||||
| 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 |
| ||||
| Sorry, its being echoed in PHP so I have escaped the double quotes. |
| |||||
| 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>
Code: echo "<a href=\"javascript:PopupPic()\">Click</a>"; |
| ||||
| Louie, Tip of the cap kind sir. Thanks very much. Jumpa |
| |||||
| 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");
}
Code: echo "<a href=\"javascript:PopupPic($your_id_here)\">Click</a>"; |
| ||||
| Nice one louie, That was my next question! |
| |||||
| anytime. glad it worked out for you. |
| Tags |
| browser, configure, javascript, open |
| Thread Tools | |
| Display Modes | |
|
|
| ||||||||
| | ![]() | |||||||